| 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/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/hydrogen-osr.h" | 10 #include "src/hydrogen-osr.h" |
| 11 | 11 |
| 12 namespace v8 { | 12 namespace v8 { |
| 13 namespace internal { | 13 namespace internal { |
| 14 | 14 |
| 15 | 15 |
| 16 class SafepointGenerator V8_FINAL : public CallWrapper { | 16 class SafepointGenerator FINAL : public CallWrapper { |
| 17 public: | 17 public: |
| 18 SafepointGenerator(LCodeGen* codegen, | 18 SafepointGenerator(LCodeGen* codegen, |
| 19 LPointerMap* pointers, | 19 LPointerMap* pointers, |
| 20 Safepoint::DeoptMode mode) | 20 Safepoint::DeoptMode mode) |
| 21 : codegen_(codegen), | 21 : codegen_(codegen), |
| 22 pointers_(pointers), | 22 pointers_(pointers), |
| 23 deopt_mode_(mode) { } | 23 deopt_mode_(mode) { } |
| 24 virtual ~SafepointGenerator() { } | 24 virtual ~SafepointGenerator() { } |
| 25 | 25 |
| 26 virtual void BeforeCall(int call_size) const { } | 26 virtual void BeforeCall(int call_size) const { } |
| (...skipping 5918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5945 __ Push(index); | 5945 __ Push(index); |
| 5946 __ Mov(cp, 0); | 5946 __ Mov(cp, 0); |
| 5947 __ CallRuntimeSaveDoubles(Runtime::kLoadMutableDouble); | 5947 __ CallRuntimeSaveDoubles(Runtime::kLoadMutableDouble); |
| 5948 RecordSafepointWithRegisters( | 5948 RecordSafepointWithRegisters( |
| 5949 instr->pointer_map(), 2, Safepoint::kNoLazyDeopt); | 5949 instr->pointer_map(), 2, Safepoint::kNoLazyDeopt); |
| 5950 __ StoreToSafepointRegisterSlot(x0, result); | 5950 __ StoreToSafepointRegisterSlot(x0, result); |
| 5951 } | 5951 } |
| 5952 | 5952 |
| 5953 | 5953 |
| 5954 void LCodeGen::DoLoadFieldByIndex(LLoadFieldByIndex* instr) { | 5954 void LCodeGen::DoLoadFieldByIndex(LLoadFieldByIndex* instr) { |
| 5955 class DeferredLoadMutableDouble V8_FINAL : public LDeferredCode { | 5955 class DeferredLoadMutableDouble FINAL : public LDeferredCode { |
| 5956 public: | 5956 public: |
| 5957 DeferredLoadMutableDouble(LCodeGen* codegen, | 5957 DeferredLoadMutableDouble(LCodeGen* codegen, |
| 5958 LLoadFieldByIndex* instr, | 5958 LLoadFieldByIndex* instr, |
| 5959 Register result, | 5959 Register result, |
| 5960 Register object, | 5960 Register object, |
| 5961 Register index) | 5961 Register index) |
| 5962 : LDeferredCode(codegen), | 5962 : LDeferredCode(codegen), |
| 5963 instr_(instr), | 5963 instr_(instr), |
| 5964 result_(result), | 5964 result_(result), |
| 5965 object_(object), | 5965 object_(object), |
| 5966 index_(index) { | 5966 index_(index) { |
| 5967 } | 5967 } |
| 5968 virtual void Generate() V8_OVERRIDE { | 5968 virtual void Generate() OVERRIDE { |
| 5969 codegen()->DoDeferredLoadMutableDouble(instr_, result_, object_, index_); | 5969 codegen()->DoDeferredLoadMutableDouble(instr_, result_, object_, index_); |
| 5970 } | 5970 } |
| 5971 virtual LInstruction* instr() V8_OVERRIDE { return instr_; } | 5971 virtual LInstruction* instr() OVERRIDE { return instr_; } |
| 5972 private: | 5972 private: |
| 5973 LLoadFieldByIndex* instr_; | 5973 LLoadFieldByIndex* instr_; |
| 5974 Register result_; | 5974 Register result_; |
| 5975 Register object_; | 5975 Register object_; |
| 5976 Register index_; | 5976 Register index_; |
| 5977 }; | 5977 }; |
| 5978 Register object = ToRegister(instr->object()); | 5978 Register object = ToRegister(instr->object()); |
| 5979 Register index = ToRegister(instr->index()); | 5979 Register index = ToRegister(instr->index()); |
| 5980 Register result = ToRegister(instr->result()); | 5980 Register result = ToRegister(instr->result()); |
| 5981 | 5981 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6021 Handle<ScopeInfo> scope_info = instr->scope_info(); | 6021 Handle<ScopeInfo> scope_info = instr->scope_info(); |
| 6022 __ Push(scope_info); | 6022 __ Push(scope_info); |
| 6023 __ Push(ToRegister(instr->function())); | 6023 __ Push(ToRegister(instr->function())); |
| 6024 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6024 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
| 6025 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6025 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 6026 } | 6026 } |
| 6027 | 6027 |
| 6028 | 6028 |
| 6029 | 6029 |
| 6030 } } // namespace v8::internal | 6030 } } // namespace v8::internal |
| OLD | NEW |