nashorn/src/jdk/nashorn/internal/codegen/CodeGenerator.java
changeset 16226 0e4f37e6cc40
parent 16225 81d58c2b9fcf
child 16233 95d3e01c04c3
equal deleted inserted replaced
16225:81d58c2b9fcf 16226:0e4f37e6cc40
  3181                 }
  3181                 }
  3182 
  3182 
  3183                 @Override
  3183                 @Override
  3184                 public Node enter(final IdentNode node) {
  3184                 public Node enter(final IdentNode node) {
  3185                     final Symbol symbol = node.getSymbol();
  3185                     final Symbol symbol = node.getSymbol();
       
  3186                     assert symbol != null;
  3186                     if (symbol.isScope()) {
  3187                     if (symbol.isScope()) {
  3187                         if (symbol.isFastScope(currentFunction)) {
  3188                         if (symbol.isFastScope(currentFunction)) {
  3188                             storeFastScopeVar(node.getType(), symbol, CALLSITE_SCOPE | getCallSiteFlags());
  3189                             storeFastScopeVar(node.getType(), symbol, CALLSITE_SCOPE | getCallSiteFlags());
  3189                         } else {
  3190                         } else {
  3190                             method.dynamicSet(node.getType(), node.getName(), CALLSITE_SCOPE | getCallSiteFlags());
  3191                             method.dynamicSet(node.getType(), node.getName(), CALLSITE_SCOPE | getCallSiteFlags());
  3191                         }
  3192                         }
  3192                     } else {
  3193                     } else {
  3193                         assert symbol != null;
       
  3194                         method.store(symbol);
  3194                         method.store(symbol);
  3195                     }
  3195                     }
  3196                     return null;
  3196                     return null;
  3197 
  3197 
  3198                 }
  3198                 }