Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/compiler/interpreter-assembler.h" | 5 #include "src/compiler/interpreter-assembler.h" |
| 6 | 6 |
| 7 #include <ostream> | 7 #include <ostream> |
| 8 | 8 |
| 9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
| 10 #include "src/compiler/graph.h" | 10 #include "src/compiler/graph.h" |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 309 Int32Constant(Context::kHeaderSize - kHeapObjectTag)); | 309 Int32Constant(Context::kHeaderSize - kHeapObjectTag)); |
| 310 return raw_assembler_->Load(kMachAnyTagged, context, offset); | 310 return raw_assembler_->Load(kMachAnyTagged, context, offset); |
| 311 } | 311 } |
| 312 | 312 |
| 313 | 313 |
| 314 Node* InterpreterAssembler::StoreContextSlot(Node* context, Node* slot_index, | 314 Node* InterpreterAssembler::StoreContextSlot(Node* context, Node* slot_index, |
| 315 Node* value) { | 315 Node* value) { |
| 316 Node* offset = | 316 Node* offset = |
| 317 IntPtrAdd(WordShl(slot_index, kPointerSizeLog2), | 317 IntPtrAdd(WordShl(slot_index, kPointerSizeLog2), |
| 318 Int32Constant(Context::kHeaderSize - kHeapObjectTag)); | 318 Int32Constant(Context::kHeaderSize - kHeapObjectTag)); |
| 319 return raw_assembler_->Store(kMachAnyTagged, context, offset, value); | 319 return raw_assembler_->Store(kMachAnyTagged, context, offset, value, |
| 320 kFullWriteBarrier); | |
|
Michael Starzinger
2015/10/26 13:28:13
Hehe, yeah, this is a case of "scary default argum
rmcilroy
2015/10/26 15:37:51
Acknowledged.
| |
| 320 } | 321 } |
| 321 | 322 |
| 322 | 323 |
| 323 Node* InterpreterAssembler::LoadTypeFeedbackVector() { | 324 Node* InterpreterAssembler::LoadTypeFeedbackVector() { |
| 324 Node* function = raw_assembler_->Load( | 325 Node* function = raw_assembler_->Load( |
| 325 kMachAnyTagged, RegisterFileRawPointer(), | 326 kMachAnyTagged, RegisterFileRawPointer(), |
| 326 IntPtrConstant(InterpreterFrameConstants::kFunctionFromRegisterPointer)); | 327 IntPtrConstant(InterpreterFrameConstants::kFunctionFromRegisterPointer)); |
| 327 Node* shared_info = | 328 Node* shared_info = |
| 328 LoadObjectField(function, JSFunction::kSharedFunctionInfoOffset); | 329 LoadObjectField(function, JSFunction::kSharedFunctionInfoOffset); |
| 329 Node* vector = | 330 Node* vector = |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 626 return raw_assembler_->schedule(); | 627 return raw_assembler_->schedule(); |
| 627 } | 628 } |
| 628 | 629 |
| 629 | 630 |
| 630 Zone* InterpreterAssembler::zone() { return raw_assembler_->zone(); } | 631 Zone* InterpreterAssembler::zone() { return raw_assembler_->zone(); } |
| 631 | 632 |
| 632 | 633 |
| 633 } // namespace compiler | 634 } // namespace compiler |
| 634 } // namespace internal | 635 } // namespace internal |
| 635 } // namespace v8 | 636 } // namespace v8 |
| OLD | NEW |