Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(511)

Side by Side Diff: src/contexts.cc

Issue 1250513004: [es6] Make sure temporaries are not allocated in block scope (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/globals.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/debug.h" 8 #include "src/debug.h"
9 #include "src/scopeinfo.h" 9 #include "src/scopeinfo.h"
10 10
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 return Nothing<PropertyAttributes>(); 133 return Nothing<PropertyAttributes>();
134 } 134 }
135 return blacklist->BooleanValue() ? Just(ABSENT) : attrs; 135 return blacklist->BooleanValue() ? Just(ABSENT) : attrs;
136 } 136 }
137 137
138 static void GetAttributesAndBindingFlags(VariableMode mode, 138 static void GetAttributesAndBindingFlags(VariableMode mode,
139 InitializationFlag init_flag, 139 InitializationFlag init_flag,
140 PropertyAttributes* attributes, 140 PropertyAttributes* attributes,
141 BindingFlags* binding_flags) { 141 BindingFlags* binding_flags) {
142 switch (mode) { 142 switch (mode) {
143 case INTERNAL: // Fall through.
144 case VAR: 143 case VAR:
145 *attributes = NONE; 144 *attributes = NONE;
146 *binding_flags = MUTABLE_IS_INITIALIZED; 145 *binding_flags = MUTABLE_IS_INITIALIZED;
147 break; 146 break;
148 case LET: 147 case LET:
149 *attributes = NONE; 148 *attributes = NONE;
150 *binding_flags = (init_flag == kNeedsInitialization) 149 *binding_flags = (init_flag == kNeedsInitialization)
151 ? MUTABLE_CHECK_INITIALIZED 150 ? MUTABLE_CHECK_INITIALIZED
152 : MUTABLE_IS_INITIALIZED; 151 : MUTABLE_IS_INITIALIZED;
153 break; 152 break;
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 // During bootstrapping we allow all objects to pass as global 510 // During bootstrapping we allow all objects to pass as global
512 // objects. This is necessary to fix circular dependencies. 511 // objects. This is necessary to fix circular dependencies.
513 return isolate->heap()->gc_state() != Heap::NOT_IN_GC || 512 return isolate->heap()->gc_state() != Heap::NOT_IN_GC ||
514 isolate->bootstrapper()->IsActive() || 513 isolate->bootstrapper()->IsActive() ||
515 object->IsGlobalObject(); 514 object->IsGlobalObject();
516 } 515 }
517 #endif 516 #endif
518 517
519 } // namespace internal 518 } // namespace internal
520 } // namespace v8 519 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698