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

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

Issue 385953004: Enum RegisterInfo renamed to ParameterIndices. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « src/code-stubs.h ('k') | src/ic.h » ('j') | 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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/cpu-profiler.h" 9 #include "src/cpu-profiler.h"
10 #include "src/factory.h" 10 #include "src/factory.h"
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 code->GetIsolate()->factory()->NewFixedArray(1, TENURED); 569 code->GetIsolate()->factory()->NewFixedArray(1, TENURED);
570 handler_table->set(0, Smi::FromInt(handler_offset_)); 570 handler_table->set(0, Smi::FromInt(handler_offset_));
571 code->set_handler_table(*handler_table); 571 code->set_handler_table(*handler_table);
572 } 572 }
573 573
574 574
575 void KeyedLoadFastElementStub::InitializeInterfaceDescriptor( 575 void KeyedLoadFastElementStub::InitializeInterfaceDescriptor(
576 CodeStubInterfaceDescriptor* descriptor) { 576 CodeStubInterfaceDescriptor* descriptor) {
577 Register registers[] = { LoadIC::ReceiverRegister(), 577 Register registers[] = { LoadIC::ReceiverRegister(),
578 LoadIC::NameRegister() }; 578 LoadIC::NameRegister() };
579 STATIC_ASSERT(LoadIC::kRegisterArgumentCount == 2); 579 STATIC_ASSERT(LoadIC::kParameterCount == 2);
580 descriptor->Initialize(ARRAY_SIZE(registers), registers, 580 descriptor->Initialize(ARRAY_SIZE(registers), registers,
581 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure)); 581 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure));
582 } 582 }
583 583
584 584
585 void KeyedLoadDictionaryElementStub::InitializeInterfaceDescriptor( 585 void KeyedLoadDictionaryElementStub::InitializeInterfaceDescriptor(
586 CodeStubInterfaceDescriptor* descriptor) { 586 CodeStubInterfaceDescriptor* descriptor) {
587 Register registers[] = { LoadIC::ReceiverRegister(), 587 Register registers[] = { LoadIC::ReceiverRegister(),
588 LoadIC::NameRegister() }; 588 LoadIC::NameRegister() };
589 STATIC_ASSERT(LoadIC::kRegisterArgumentCount == 2); 589 STATIC_ASSERT(LoadIC::kParameterCount == 2);
590 descriptor->Initialize(ARRAY_SIZE(registers), registers, 590 descriptor->Initialize(ARRAY_SIZE(registers), registers,
591 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure)); 591 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure));
592 } 592 }
593 593
594 594
595 void KeyedLoadGenericElementStub::InitializeInterfaceDescriptor( 595 void KeyedLoadGenericElementStub::InitializeInterfaceDescriptor(
596 CodeStubInterfaceDescriptor* descriptor) { 596 CodeStubInterfaceDescriptor* descriptor) {
597 Register registers[] = { LoadIC::ReceiverRegister(), 597 Register registers[] = { LoadIC::ReceiverRegister(),
598 LoadIC::NameRegister() }; 598 LoadIC::NameRegister() };
599 STATIC_ASSERT(LoadIC::kRegisterArgumentCount == 2); 599 STATIC_ASSERT(LoadIC::kParameterCount == 2);
600 descriptor->Initialize( 600 descriptor->Initialize(
601 ARRAY_SIZE(registers), registers, 601 ARRAY_SIZE(registers), registers,
602 Runtime::FunctionForId(Runtime::kKeyedGetProperty)->entry); 602 Runtime::FunctionForId(Runtime::kKeyedGetProperty)->entry);
603 } 603 }
604 604
605 605
606 void LoadFieldStub::InitializeInterfaceDescriptor( 606 void LoadFieldStub::InitializeInterfaceDescriptor(
607 CodeStubInterfaceDescriptor* descriptor) { 607 CodeStubInterfaceDescriptor* descriptor) {
608 Register registers[] = { LoadIC::ReceiverRegister() }; 608 Register registers[] = { LoadIC::ReceiverRegister() };
609 descriptor->Initialize(ARRAY_SIZE(registers), registers); 609 descriptor->Initialize(ARRAY_SIZE(registers), registers);
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
972 InstallDescriptor(isolate, &stub3); 972 InstallDescriptor(isolate, &stub3);
973 } 973 }
974 974
975 InternalArrayConstructorStub::InternalArrayConstructorStub( 975 InternalArrayConstructorStub::InternalArrayConstructorStub(
976 Isolate* isolate) : PlatformCodeStub(isolate) { 976 Isolate* isolate) : PlatformCodeStub(isolate) {
977 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 977 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
978 } 978 }
979 979
980 980
981 } } // namespace v8::internal 981 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/ic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698