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

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

Issue 14855008: MIPS: Turn the load field code stub into a hydrogen code stub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/mips/stub-cache-mips.cc » ('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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 Isolate* isolate, 68 Isolate* isolate,
69 CodeStubInterfaceDescriptor* descriptor) { 69 CodeStubInterfaceDescriptor* descriptor) {
70 static Register registers[] = { a1, a0 }; 70 static Register registers[] = { a1, a0 };
71 descriptor->register_param_count_ = 2; 71 descriptor->register_param_count_ = 2;
72 descriptor->register_params_ = registers; 72 descriptor->register_params_ = registers;
73 descriptor->deoptimization_handler_ = 73 descriptor->deoptimization_handler_ =
74 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure); 74 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure);
75 } 75 }
76 76
77 77
78 void LoadFieldStub::InitializeInterfaceDescriptor(
79 Isolate* isolate,
80 CodeStubInterfaceDescriptor* descriptor) {
81 static Register registers[] = { a0 };
82 descriptor->register_param_count_ = 1;
83 descriptor->register_params_ = registers;
84 descriptor->stack_parameter_count_ = NULL;
85 descriptor->deoptimization_handler_ = NULL;
86 }
87
88
89 void KeyedLoadFieldStub::InitializeInterfaceDescriptor(
90 Isolate* isolate,
91 CodeStubInterfaceDescriptor* descriptor) {
92 static Register registers[] = { a1 };
93 descriptor->register_param_count_ = 1;
94 descriptor->register_params_ = registers;
95 descriptor->stack_parameter_count_ = NULL;
96 descriptor->deoptimization_handler_ = NULL;
97 }
98
99
78 void KeyedStoreFastElementStub::InitializeInterfaceDescriptor( 100 void KeyedStoreFastElementStub::InitializeInterfaceDescriptor(
79 Isolate* isolate, 101 Isolate* isolate,
80 CodeStubInterfaceDescriptor* descriptor) { 102 CodeStubInterfaceDescriptor* descriptor) {
81 static Register registers[] = { a2, a1, a0 }; 103 static Register registers[] = { a2, a1, a0 };
82 descriptor->register_param_count_ = 3; 104 descriptor->register_param_count_ = 3;
83 descriptor->register_params_ = registers; 105 descriptor->register_params_ = registers;
84 descriptor->deoptimization_handler_ = 106 descriptor->deoptimization_handler_ =
85 FUNCTION_ADDR(KeyedStoreIC_MissFromStubFailure); 107 FUNCTION_ADDR(KeyedStoreIC_MissFromStubFailure);
86 } 108 }
87 109
(...skipping 4005 matching lines...) Expand 10 before | Expand all | Expand 10 after
4093 StubCompiler::TailCallBuiltin(masm, StubCompiler::MissBuiltin(kind())); 4115 StubCompiler::TailCallBuiltin(masm, StubCompiler::MissBuiltin(kind()));
4094 } 4116 }
4095 4117
4096 4118
4097 Register InstanceofStub::left() { return a0; } 4119 Register InstanceofStub::left() { return a0; }
4098 4120
4099 4121
4100 Register InstanceofStub::right() { return a1; } 4122 Register InstanceofStub::right() { return a1; }
4101 4123
4102 4124
4103 void LoadFieldStub::Generate(MacroAssembler* masm) {
4104 StubCompiler::DoGenerateFastPropertyLoad(masm, v0, reg_, inobject_, index_);
4105 __ Ret();
4106 }
4107
4108
4109 void ArgumentsAccessStub::GenerateReadElement(MacroAssembler* masm) { 4125 void ArgumentsAccessStub::GenerateReadElement(MacroAssembler* masm) {
4110 // The displacement is the offset of the last parameter (if any) 4126 // The displacement is the offset of the last parameter (if any)
4111 // relative to the frame pointer. 4127 // relative to the frame pointer.
4112 const int kDisplacement = 4128 const int kDisplacement =
4113 StandardFrameConstants::kCallerSPOffset - kPointerSize; 4129 StandardFrameConstants::kCallerSPOffset - kPointerSize;
4114 4130
4115 // Check that the key is a smiGenerateReadElement. 4131 // Check that the key is a smiGenerateReadElement.
4116 Label slow; 4132 Label slow;
4117 __ JumpIfNotSmi(a1, &slow); 4133 __ JumpIfNotSmi(a1, &slow);
4118 4134
(...skipping 3632 matching lines...) Expand 10 before | Expand all | Expand 10 after
7751 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); 7767 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET);
7752 } 7768 }
7753 } 7769 }
7754 7770
7755 7771
7756 #undef __ 7772 #undef __
7757 7773
7758 } } // namespace v8::internal 7774 } } // namespace v8::internal
7759 7775
7760 #endif // V8_TARGET_ARCH_MIPS 7776 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/mips/stub-cache-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698