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/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/cpu-profiler.h" | 10 #include "src/cpu-profiler.h" |
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 | 587 |
588 | 588 |
589 void JSEntryStub::FinishCode(Handle<Code> code) { | 589 void JSEntryStub::FinishCode(Handle<Code> code) { |
590 Handle<FixedArray> handler_table = | 590 Handle<FixedArray> handler_table = |
591 code->GetIsolate()->factory()->NewFixedArray(1, TENURED); | 591 code->GetIsolate()->factory()->NewFixedArray(1, TENURED); |
592 handler_table->set(0, Smi::FromInt(handler_offset_)); | 592 handler_table->set(0, Smi::FromInt(handler_offset_)); |
593 code->set_handler_table(*handler_table); | 593 code->set_handler_table(*handler_table); |
594 } | 594 } |
595 | 595 |
596 | 596 |
597 void LoadFastElementStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { | |
598 descriptor->Initialize(FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure)); | |
599 } | |
600 | |
601 | |
602 void LoadDictionaryElementStub::InitializeDescriptor( | 597 void LoadDictionaryElementStub::InitializeDescriptor( |
603 CodeStubDescriptor* descriptor) { | 598 CodeStubDescriptor* descriptor) { |
604 descriptor->Initialize(FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure)); | 599 descriptor->Initialize(FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure)); |
605 } | 600 } |
606 | 601 |
607 | 602 |
608 void KeyedLoadGenericStub::InitializeDescriptor( | 603 void KeyedLoadGenericStub::InitializeDescriptor( |
609 CodeStubDescriptor* descriptor) { | 604 CodeStubDescriptor* descriptor) { |
610 descriptor->Initialize( | 605 descriptor->Initialize( |
611 Runtime::FunctionForId(Runtime::kKeyedGetProperty)->entry); | 606 Runtime::FunctionForId(Runtime::kKeyedGetProperty)->entry); |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1025 } | 1020 } |
1026 | 1021 |
1027 | 1022 |
1028 InternalArrayConstructorStub::InternalArrayConstructorStub( | 1023 InternalArrayConstructorStub::InternalArrayConstructorStub( |
1029 Isolate* isolate) : PlatformCodeStub(isolate) { | 1024 Isolate* isolate) : PlatformCodeStub(isolate) { |
1030 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 1025 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
1031 } | 1026 } |
1032 | 1027 |
1033 | 1028 |
1034 } } // namespace v8::internal | 1029 } } // namespace v8::internal |
OLD | NEW |