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

Side by Side Diff: src/runtime/runtime-scopes.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 | « src/pattern-rewriter.cc ('k') | src/scopeinfo.cc » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/accessors.h" 7 #include "src/accessors.h"
8 #include "src/arguments.h" 8 #include "src/arguments.h"
9 #include "src/frames-inl.h" 9 #include "src/frames-inl.h"
10 #include "src/messages.h" 10 #include "src/messages.h"
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after
823 PropertyAttributes attr = 823 PropertyAttributes attr =
824 IsImmutableVariableMode(mode) ? FROZEN : SEALED; 824 IsImmutableVariableMode(mode) ? FROZEN : SEALED;
825 Handle<AccessorInfo> info = 825 Handle<AccessorInfo> info =
826 Accessors::MakeModuleExport(name, index, attr); 826 Accessors::MakeModuleExport(name, index, attr);
827 Handle<Object> result = 827 Handle<Object> result =
828 JSObject::SetAccessor(module, info).ToHandleChecked(); 828 JSObject::SetAccessor(module, info).ToHandleChecked();
829 DCHECK(!result->IsUndefined()); 829 DCHECK(!result->IsUndefined());
830 USE(result); 830 USE(result);
831 break; 831 break;
832 } 832 }
833 case INTERNAL:
834 case TEMPORARY: 833 case TEMPORARY:
835 case DYNAMIC: 834 case DYNAMIC:
836 case DYNAMIC_GLOBAL: 835 case DYNAMIC_GLOBAL:
837 case DYNAMIC_LOCAL: 836 case DYNAMIC_LOCAL:
838 UNREACHABLE(); 837 UNREACHABLE();
839 } 838 }
840 } 839 }
841 840
842 JSObject::PreventExtensions(module).Assert(); 841 JSObject::PreventExtensions(module).Assert();
843 } 842 }
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
1150 return Smi::FromInt(frame->GetArgumentsLength()); 1149 return Smi::FromInt(frame->GetArgumentsLength());
1151 } 1150 }
1152 1151
1153 1152
1154 RUNTIME_FUNCTION(Runtime_Arguments) { 1153 RUNTIME_FUNCTION(Runtime_Arguments) {
1155 SealHandleScope shs(isolate); 1154 SealHandleScope shs(isolate);
1156 return __RT_impl_Runtime_GetArgumentsProperty(args, isolate); 1155 return __RT_impl_Runtime_GetArgumentsProperty(args, isolate);
1157 } 1156 }
1158 } // namespace internal 1157 } // namespace internal
1159 } // namespace v8 1158 } // namespace v8
OLDNEW
« no previous file with comments | « src/pattern-rewriter.cc ('k') | src/scopeinfo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698