Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/code-stubs.cc

Issue 1132493006: Make LoadFastElementStub a HandlerStub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Reordered lines. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/code-stubs.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698