OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 #if V8_TARGET_ARCH_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
6 | 6 |
7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
874 if (Smi::FromInt(DeclareGlobalsFlags())) { | 874 if (Smi::FromInt(DeclareGlobalsFlags())) { |
875 flags = x10; | 875 flags = x10; |
876 __ Mov(flags, Smi::FromInt(DeclareGlobalsFlags())); | 876 __ Mov(flags, Smi::FromInt(DeclareGlobalsFlags())); |
877 } | 877 } |
878 __ Push(x11, flags); | 878 __ Push(x11, flags); |
879 __ CallRuntime(Runtime::kDeclareGlobals); | 879 __ CallRuntime(Runtime::kDeclareGlobals); |
880 // Return value is ignored. | 880 // Return value is ignored. |
881 } | 881 } |
882 | 882 |
883 | 883 |
884 void FullCodeGenerator::DeclareModules(Handle<FixedArray> descriptions) { | |
885 // Call the runtime to declare the modules. | |
886 __ Push(descriptions); | |
887 __ CallRuntime(Runtime::kDeclareModules); | |
888 // Return value is ignored. | |
889 } | |
890 | |
891 | |
892 void FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) { | 884 void FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) { |
893 ASM_LOCATION("FullCodeGenerator::VisitSwitchStatement"); | 885 ASM_LOCATION("FullCodeGenerator::VisitSwitchStatement"); |
894 Comment cmnt(masm_, "[ SwitchStatement"); | 886 Comment cmnt(masm_, "[ SwitchStatement"); |
895 Breakable nested_statement(this, stmt); | 887 Breakable nested_statement(this, stmt); |
896 SetStatementPosition(stmt); | 888 SetStatementPosition(stmt); |
897 | 889 |
898 // Keep the switch value on the stack until a case matches. | 890 // Keep the switch value on the stack until a case matches. |
899 VisitForStackValue(stmt->tag()); | 891 VisitForStackValue(stmt->tag()); |
900 PrepareForBailoutForId(stmt->EntryId(), BailoutState::NO_REGISTERS); | 892 PrepareForBailoutForId(stmt->EntryId(), BailoutState::NO_REGISTERS); |
901 | 893 |
(...skipping 2966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3868 } | 3860 } |
3869 | 3861 |
3870 return INTERRUPT; | 3862 return INTERRUPT; |
3871 } | 3863 } |
3872 | 3864 |
3873 | 3865 |
3874 } // namespace internal | 3866 } // namespace internal |
3875 } // namespace v8 | 3867 } // namespace v8 |
3876 | 3868 |
3877 #endif // V8_TARGET_ARCH_ARM64 | 3869 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |