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

Side by Side Diff: src/x87/stub-cache-x87.cc

Issue 340363002: The IC should define its input registers (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added mips and x87 port. Created 6 years, 6 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/x87/ic-x87.cc ('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/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_X87 7 #if V8_TARGET_ARCH_X87
8 8
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/ic-inl.h" 10 #include "src/ic-inl.h"
(...skipping 1264 matching lines...) Expand 10 before | Expand all | Expand 10 after
1275 __ mov(eax, isolate()->factory()->undefined_value()); 1275 __ mov(eax, isolate()->factory()->undefined_value());
1276 __ ret(0); 1276 __ ret(0);
1277 1277
1278 // Return the generated code. 1278 // Return the generated code.
1279 return GetCode(kind(), Code::FAST, name); 1279 return GetCode(kind(), Code::FAST, name);
1280 } 1280 }
1281 1281
1282 1282
1283 Register* LoadStubCompiler::registers() { 1283 Register* LoadStubCompiler::registers() {
1284 // receiver, name, scratch1, scratch2, scratch3, scratch4. 1284 // receiver, name, scratch1, scratch2, scratch3, scratch4.
1285 static Register registers[] = { edx, ecx, ebx, eax, edi, no_reg }; 1285 Register receiver = LoadIC::kReceiverRegister;
1286 Register name = LoadIC::kNameRegister;
1287 static Register registers[] = { receiver, name, ebx, eax, edi, no_reg };
1286 return registers; 1288 return registers;
1287 } 1289 }
1288 1290
1289 1291
1290 Register* KeyedLoadStubCompiler::registers() { 1292 Register* KeyedLoadStubCompiler::registers() {
1291 // receiver, name, scratch1, scratch2, scratch3, scratch4. 1293 // receiver, name, scratch1, scratch2, scratch3, scratch4.
1292 static Register registers[] = { edx, ecx, ebx, eax, edi, no_reg }; 1294 Register receiver = KeyedLoadIC::kReceiverRegister;
1295 Register name = KeyedLoadIC::kNameRegister;
1296 static Register registers[] = { receiver, name, ebx, eax, edi, no_reg };
1293 return registers; 1297 return registers;
1294 } 1298 }
1295 1299
1296 1300
1297 Register StoreStubCompiler::value() { 1301 Register StoreStubCompiler::value() {
1298 return eax; 1302 return eax;
1299 } 1303 }
1300 1304
1301 1305
1302 Register* StoreStubCompiler::registers() { 1306 Register* StoreStubCompiler::registers() {
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
1484 // ----------------------------------- 1488 // -----------------------------------
1485 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 1489 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
1486 } 1490 }
1487 1491
1488 1492
1489 #undef __ 1493 #undef __
1490 1494
1491 } } // namespace v8::internal 1495 } } // namespace v8::internal
1492 1496
1493 #endif // V8_TARGET_ARCH_X87 1497 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x87/ic-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698