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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/arm64/lithium-codegen-arm64.h" | 7 #include "src/arm64/lithium-codegen-arm64.h" |
8 #include "src/arm64/lithium-gap-resolver-arm64.h" | 8 #include "src/arm64/lithium-gap-resolver-arm64.h" |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
(...skipping 5017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5028 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { | 5028 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { |
5029 DCHECK(ToRegister(instr->context()).is(cp)); | 5029 DCHECK(ToRegister(instr->context()).is(cp)); |
5030 Register scratch1 = x5; | 5030 Register scratch1 = x5; |
5031 Register scratch2 = x6; | 5031 Register scratch2 = x6; |
5032 DCHECK(instr->IsMarkedAsCall()); | 5032 DCHECK(instr->IsMarkedAsCall()); |
5033 | 5033 |
5034 // TODO(all): if Mov could handle object in new space then it could be used | 5034 // TODO(all): if Mov could handle object in new space then it could be used |
5035 // here. | 5035 // here. |
5036 __ LoadHeapObject(scratch1, instr->hydrogen()->pairs()); | 5036 __ LoadHeapObject(scratch1, instr->hydrogen()->pairs()); |
5037 __ Mov(scratch2, Smi::FromInt(instr->hydrogen()->flags())); | 5037 __ Mov(scratch2, Smi::FromInt(instr->hydrogen()->flags())); |
5038 __ Push(cp, scratch1, scratch2); // The context is the first argument. | 5038 __ Push(scratch1, scratch2); |
5039 CallRuntime(Runtime::kDeclareGlobals, 3, instr); | 5039 CallRuntime(Runtime::kDeclareGlobals, 2, instr); |
5040 } | 5040 } |
5041 | 5041 |
5042 | 5042 |
5043 void LCodeGen::DoDeferredStackCheck(LStackCheck* instr) { | 5043 void LCodeGen::DoDeferredStackCheck(LStackCheck* instr) { |
5044 PushSafepointRegistersScope scope(this); | 5044 PushSafepointRegistersScope scope(this); |
5045 LoadContextFromDeferred(instr->context()); | 5045 LoadContextFromDeferred(instr->context()); |
5046 __ CallRuntimeSaveDoubles(Runtime::kStackGuard); | 5046 __ CallRuntimeSaveDoubles(Runtime::kStackGuard); |
5047 RecordSafepointWithLazyDeopt( | 5047 RecordSafepointWithLazyDeopt( |
5048 instr, RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); | 5048 instr, RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); |
5049 DCHECK(instr->HasEnvironment()); | 5049 DCHECK(instr->HasEnvironment()); |
(...skipping 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6156 Handle<ScopeInfo> scope_info = instr->scope_info(); | 6156 Handle<ScopeInfo> scope_info = instr->scope_info(); |
6157 __ Push(scope_info); | 6157 __ Push(scope_info); |
6158 __ Push(ToRegister(instr->function())); | 6158 __ Push(ToRegister(instr->function())); |
6159 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6159 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
6160 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6160 RecordSafepoint(Safepoint::kNoLazyDeopt); |
6161 } | 6161 } |
6162 | 6162 |
6163 | 6163 |
6164 } // namespace internal | 6164 } // namespace internal |
6165 } // namespace v8 | 6165 } // namespace v8 |
OLD | NEW |