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

Side by Side Diff: src/runtime/runtime-scopes.cc

Issue 948303004: Re-introduce ImportDeclaration to the parser (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Merged to trunk so I can run tryjobs Created 5 years, 10 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/prettyprinter.cc ('k') | src/typing.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/runtime/runtime-utils.h" 10 #include "src/runtime/runtime-utils.h"
(...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 Handle<JSModule> module(context->module()); 783 Handle<JSModule> module(context->module());
784 784
785 for (int j = 0; j < description->length(); ++j) { 785 for (int j = 0; j < description->length(); ++j) {
786 Handle<String> name(description->name(j)); 786 Handle<String> name(description->name(j));
787 VariableMode mode = description->mode(j); 787 VariableMode mode = description->mode(j);
788 int index = description->index(j); 788 int index = description->index(j);
789 switch (mode) { 789 switch (mode) {
790 case VAR: 790 case VAR:
791 case LET: 791 case LET:
792 case CONST: 792 case CONST:
793 case CONST_LEGACY: { 793 case CONST_LEGACY:
794 case IMPORT: {
794 PropertyAttributes attr = 795 PropertyAttributes attr =
795 IsImmutableVariableMode(mode) ? FROZEN : SEALED; 796 IsImmutableVariableMode(mode) ? FROZEN : SEALED;
796 Handle<AccessorInfo> info = 797 Handle<AccessorInfo> info =
797 Accessors::MakeModuleExport(name, index, attr); 798 Accessors::MakeModuleExport(name, index, attr);
798 Handle<Object> result = 799 Handle<Object> result =
799 JSObject::SetAccessor(module, info).ToHandleChecked(); 800 JSObject::SetAccessor(module, info).ToHandleChecked();
800 DCHECK(!result->IsUndefined()); 801 DCHECK(!result->IsUndefined());
801 USE(result); 802 USE(result);
802 break; 803 break;
803 } 804 }
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
1113 return Smi::FromInt(frame->GetArgumentsLength()); 1114 return Smi::FromInt(frame->GetArgumentsLength());
1114 } 1115 }
1115 1116
1116 1117
1117 RUNTIME_FUNCTION(RuntimeReference_Arguments) { 1118 RUNTIME_FUNCTION(RuntimeReference_Arguments) {
1118 SealHandleScope shs(isolate); 1119 SealHandleScope shs(isolate);
1119 return __RT_impl_Runtime_GetArgumentsProperty(args, isolate); 1120 return __RT_impl_Runtime_GetArgumentsProperty(args, isolate);
1120 } 1121 }
1121 } 1122 }
1122 } // namespace v8::internal 1123 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/prettyprinter.cc ('k') | src/typing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698