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

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

Issue 339663008: Revert "Create a RegisterSpec class inside of the IC that provides:" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 Register receiver = LoadIC::kReceiverRegister; 1285 static Register registers[] = { edx, ecx, ebx, eax, edi, no_reg };
1286 Register name = LoadIC::kNameRegister;
1287 static Register registers[] = { receiver, name, ebx, eax, edi, no_reg };
1288 return registers; 1286 return registers;
1289 } 1287 }
1290 1288
1291 1289
1292 Register* KeyedLoadStubCompiler::registers() { 1290 Register* KeyedLoadStubCompiler::registers() {
1293 // receiver, name, scratch1, scratch2, scratch3, scratch4. 1291 // receiver, name, scratch1, scratch2, scratch3, scratch4.
1294 Register receiver = KeyedLoadIC::kReceiverRegister; 1292 static Register registers[] = { edx, ecx, ebx, eax, edi, no_reg };
1295 Register name = KeyedLoadIC::kNameRegister;
1296 static Register registers[] = { receiver, name, ebx, eax, edi, no_reg };
1297 return registers; 1293 return registers;
1298 } 1294 }
1299 1295
1300 1296
1301 Register StoreStubCompiler::value() { 1297 Register StoreStubCompiler::value() {
1302 return eax; 1298 return eax;
1303 } 1299 }
1304 1300
1305 1301
1306 Register* StoreStubCompiler::registers() { 1302 Register* StoreStubCompiler::registers() {
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
1488 // ----------------------------------- 1484 // -----------------------------------
1489 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 1485 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
1490 } 1486 }
1491 1487
1492 1488
1493 #undef __ 1489 #undef __
1494 1490
1495 } } // namespace v8::internal 1491 } } // namespace v8::internal
1496 1492
1497 #endif // V8_TARGET_ARCH_X87 1493 #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