OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/code-stubs.h" | 5 #include "src/code-stubs.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/ast/ast.h" | 9 #include "src/ast/ast.h" |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 GetCodeFlags(), name); | 438 GetCodeFlags(), name); |
439 GenerateAssembly(&state); | 439 GenerateAssembly(&state); |
440 return compiler::CodeAssembler::GenerateCode(&state); | 440 return compiler::CodeAssembler::GenerateCode(&state); |
441 } | 441 } |
442 | 442 |
443 void LoadICProtoArrayStub::GenerateAssembly(CodeAssemblerState* state) const { | 443 void LoadICProtoArrayStub::GenerateAssembly(CodeAssemblerState* state) const { |
444 AccessorAssembler::GenerateLoadICProtoArray( | 444 AccessorAssembler::GenerateLoadICProtoArray( |
445 state, throw_reference_error_if_nonexistent()); | 445 state, throw_reference_error_if_nonexistent()); |
446 } | 446 } |
447 | 447 |
448 void LoadGlobalICStub::GenerateAssembly(CodeAssemblerState* state) const { | |
449 AccessorAssembler::GenerateLoadGlobalIC(state, typeof_mode()); | |
450 } | |
451 | |
452 void LoadGlobalICTrampolineStub::GenerateAssembly( | |
453 CodeAssemblerState* state) const { | |
454 AccessorAssembler::GenerateLoadGlobalICTrampoline(state, typeof_mode()); | |
455 } | |
456 | |
457 void ElementsTransitionAndStoreStub::GenerateAssembly( | 448 void ElementsTransitionAndStoreStub::GenerateAssembly( |
458 compiler::CodeAssemblerState* state) const { | 449 compiler::CodeAssemblerState* state) const { |
459 typedef CodeStubAssembler::Label Label; | 450 typedef CodeStubAssembler::Label Label; |
460 typedef compiler::Node Node; | 451 typedef compiler::Node Node; |
461 CodeStubAssembler assembler(state); | 452 CodeStubAssembler assembler(state); |
462 | 453 |
463 Node* receiver = assembler.Parameter(Descriptor::kReceiver); | 454 Node* receiver = assembler.Parameter(Descriptor::kReceiver); |
464 Node* key = assembler.Parameter(Descriptor::kName); | 455 Node* key = assembler.Parameter(Descriptor::kName); |
465 Node* value = assembler.Parameter(Descriptor::kValue); | 456 Node* value = assembler.Parameter(Descriptor::kValue); |
466 Node* map = assembler.Parameter(Descriptor::kMap); | 457 Node* map = assembler.Parameter(Descriptor::kMap); |
(...skipping 1751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2218 } | 2209 } |
2219 | 2210 |
2220 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate) | 2211 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate) |
2221 : PlatformCodeStub(isolate) {} | 2212 : PlatformCodeStub(isolate) {} |
2222 | 2213 |
2223 InternalArrayConstructorStub::InternalArrayConstructorStub(Isolate* isolate) | 2214 InternalArrayConstructorStub::InternalArrayConstructorStub(Isolate* isolate) |
2224 : PlatformCodeStub(isolate) {} | 2215 : PlatformCodeStub(isolate) {} |
2225 | 2216 |
2226 } // namespace internal | 2217 } // namespace internal |
2227 } // namespace v8 | 2218 } // namespace v8 |
OLD | NEW |