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

Side by Side Diff: src/x64/lithium-x64.cc

Issue 8495011: Revert r9901 to make tree green again. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 1 month 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/x64/lithium-x64.h ('k') | test/mjsunit/switch.js » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 } 223 }
224 224
225 225
226 void LIsObjectAndBranch::PrintDataTo(StringStream* stream) { 226 void LIsObjectAndBranch::PrintDataTo(StringStream* stream) {
227 stream->Add("if is_object("); 227 stream->Add("if is_object(");
228 InputAt(0)->PrintTo(stream); 228 InputAt(0)->PrintTo(stream);
229 stream->Add(") then B%d else B%d", true_block_id(), false_block_id()); 229 stream->Add(") then B%d else B%d", true_block_id(), false_block_id());
230 } 230 }
231 231
232 232
233 void LIsStringAndBranch::PrintDataTo(StringStream* stream) {
234 stream->Add("if is_string(");
235 InputAt(0)->PrintTo(stream);
236 stream->Add(") then B%d else B%d", true_block_id(), false_block_id());
237 }
238
239
240 void LIsSmiAndBranch::PrintDataTo(StringStream* stream) { 233 void LIsSmiAndBranch::PrintDataTo(StringStream* stream) {
241 stream->Add("if is_smi("); 234 stream->Add("if is_smi(");
242 InputAt(0)->PrintTo(stream); 235 InputAt(0)->PrintTo(stream);
243 stream->Add(") then B%d else B%d", true_block_id(), false_block_id()); 236 stream->Add(") then B%d else B%d", true_block_id(), false_block_id());
244 } 237 }
245 238
246 239
247 void LIsUndetectableAndBranch::PrintDataTo(StringStream* stream) { 240 void LIsUndetectableAndBranch::PrintDataTo(StringStream* stream) {
248 stream->Add("if is_undetectable("); 241 stream->Add("if is_undetectable(");
249 InputAt(0)->PrintTo(stream); 242 InputAt(0)->PrintTo(stream);
250 stream->Add(") then B%d else B%d", true_block_id(), false_block_id()); 243 stream->Add(") then B%d else B%d", true_block_id(), false_block_id());
251 } 244 }
252 245
253 246
254 void LStringCompareAndBranch::PrintDataTo(StringStream* stream) {
255 stream->Add("if compare_generic(");
256 InputAt(0)->PrintTo(stream);
257 InputAt(1)->PrintTo(stream);
258 stream->Add(") then B%d else B%d", true_block_id(), false_block_id());
259 }
260
261
262 void LHasInstanceTypeAndBranch::PrintDataTo(StringStream* stream) { 247 void LHasInstanceTypeAndBranch::PrintDataTo(StringStream* stream) {
263 stream->Add("if has_instance_type("); 248 stream->Add("if has_instance_type(");
264 InputAt(0)->PrintTo(stream); 249 InputAt(0)->PrintTo(stream);
265 stream->Add(") then B%d else B%d", true_block_id(), false_block_id()); 250 stream->Add(") then B%d else B%d", true_block_id(), false_block_id());
266 } 251 }
267 252
268 253
269 void LHasCachedArrayIndexAndBranch::PrintDataTo(StringStream* stream) { 254 void LHasCachedArrayIndexAndBranch::PrintDataTo(StringStream* stream) {
270 stream->Add("if has_cached_array_index("); 255 stream->Add("if has_cached_array_index(");
271 InputAt(0)->PrintTo(stream); 256 InputAt(0)->PrintTo(stream);
(...skipping 1128 matching lines...) Expand 10 before | Expand all | Expand 10 after
1400 CAN_DEOPTIMIZE_EAGERLY); 1385 CAN_DEOPTIMIZE_EAGERLY);
1401 } 1386 }
1402 1387
1403 1388
1404 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { 1389 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) {
1405 ASSERT(instr->left()->representation().IsTagged()); 1390 ASSERT(instr->left()->representation().IsTagged());
1406 ASSERT(instr->right()->representation().IsTagged()); 1391 ASSERT(instr->right()->representation().IsTagged());
1407 LOperand* left = UseFixed(instr->left(), rdx); 1392 LOperand* left = UseFixed(instr->left(), rdx);
1408 LOperand* right = UseFixed(instr->right(), rax); 1393 LOperand* right = UseFixed(instr->right(), rax);
1409 LCmpT* result = new LCmpT(left, right); 1394 LCmpT* result = new LCmpT(left, right);
1410 return AssignEnvironment(MarkAsCall(DefineFixed(result, rax), instr)); 1395 return MarkAsCall(DefineFixed(result, rax), instr);
1411 } 1396 }
1412 1397
1413 1398
1414 LInstruction* LChunkBuilder::DoCompareIDAndBranch( 1399 LInstruction* LChunkBuilder::DoCompareIDAndBranch(
1415 HCompareIDAndBranch* instr) { 1400 HCompareIDAndBranch* instr) {
1416 Representation r = instr->GetInputRepresentation(); 1401 Representation r = instr->GetInputRepresentation();
1417 if (r.IsInteger32()) { 1402 if (r.IsInteger32()) {
1418 ASSERT(instr->left()->representation().IsInteger32()); 1403 ASSERT(instr->left()->representation().IsInteger32());
1419 ASSERT(instr->right()->representation().IsInteger32()); 1404 ASSERT(instr->right()->representation().IsInteger32());
1420 LOperand* left = UseRegisterOrConstantAtStart(instr->left()); 1405 LOperand* left = UseRegisterOrConstantAtStart(instr->left());
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
1458 return new LIsNilAndBranch(UseRegisterAtStart(instr->value()), temp); 1443 return new LIsNilAndBranch(UseRegisterAtStart(instr->value()), temp);
1459 } 1444 }
1460 1445
1461 1446
1462 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) { 1447 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) {
1463 ASSERT(instr->value()->representation().IsTagged()); 1448 ASSERT(instr->value()->representation().IsTagged());
1464 return new LIsObjectAndBranch(UseRegisterAtStart(instr->value())); 1449 return new LIsObjectAndBranch(UseRegisterAtStart(instr->value()));
1465 } 1450 }
1466 1451
1467 1452
1468 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) {
1469 ASSERT(instr->value()->representation().IsTagged());
1470 return new LIsStringAndBranch(UseRegisterAtStart(instr->value()));
1471 }
1472
1473
1474 LInstruction* LChunkBuilder::DoIsSmiAndBranch(HIsSmiAndBranch* instr) { 1453 LInstruction* LChunkBuilder::DoIsSmiAndBranch(HIsSmiAndBranch* instr) {
1475 ASSERT(instr->value()->representation().IsTagged()); 1454 ASSERT(instr->value()->representation().IsTagged());
1476 return new LIsSmiAndBranch(Use(instr->value())); 1455 return new LIsSmiAndBranch(Use(instr->value()));
1477 } 1456 }
1478 1457
1479 1458
1480 LInstruction* LChunkBuilder::DoIsUndetectableAndBranch( 1459 LInstruction* LChunkBuilder::DoIsUndetectableAndBranch(
1481 HIsUndetectableAndBranch* instr) { 1460 HIsUndetectableAndBranch* instr) {
1482 ASSERT(instr->value()->representation().IsTagged()); 1461 ASSERT(instr->value()->representation().IsTagged());
1483 return new LIsUndetectableAndBranch(UseRegisterAtStart(instr->value()), 1462 return new LIsUndetectableAndBranch(UseRegisterAtStart(instr->value()),
1484 TempRegister()); 1463 TempRegister());
1485 } 1464 }
1486 1465
1487 1466
1488 LInstruction* LChunkBuilder::DoStringCompareAndBranch(
1489 HStringCompareAndBranch* instr) {
1490
1491 ASSERT(instr->left()->representation().IsTagged());
1492 ASSERT(instr->right()->representation().IsTagged());
1493 LOperand* left = UseFixed(instr->left(), rdx);
1494 LOperand* right = UseFixed(instr->right(), rax);
1495 LStringCompareAndBranch* result = new LStringCompareAndBranch(left, right);
1496
1497 return MarkAsCall(result, instr);
1498 }
1499
1500
1501 LInstruction* LChunkBuilder::DoHasInstanceTypeAndBranch( 1467 LInstruction* LChunkBuilder::DoHasInstanceTypeAndBranch(
1502 HHasInstanceTypeAndBranch* instr) { 1468 HHasInstanceTypeAndBranch* instr) {
1503 ASSERT(instr->value()->representation().IsTagged()); 1469 ASSERT(instr->value()->representation().IsTagged());
1504 return new LHasInstanceTypeAndBranch(UseRegisterAtStart(instr->value())); 1470 return new LHasInstanceTypeAndBranch(UseRegisterAtStart(instr->value()));
1505 } 1471 }
1506 1472
1507 1473
1508 LInstruction* LChunkBuilder::DoGetCachedArrayIndex( 1474 LInstruction* LChunkBuilder::DoGetCachedArrayIndex(
1509 HGetCachedArrayIndex* instr) { 1475 HGetCachedArrayIndex* instr) {
1510 ASSERT(instr->value()->representation().IsTagged()); 1476 ASSERT(instr->value()->representation().IsTagged());
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
2228 LOperand* key = UseOrConstantAtStart(instr->key()); 2194 LOperand* key = UseOrConstantAtStart(instr->key());
2229 LOperand* object = UseOrConstantAtStart(instr->object()); 2195 LOperand* object = UseOrConstantAtStart(instr->object());
2230 LIn* result = new LIn(key, object); 2196 LIn* result = new LIn(key, object);
2231 return MarkAsCall(DefineFixed(result, rax), instr); 2197 return MarkAsCall(DefineFixed(result, rax), instr);
2232 } 2198 }
2233 2199
2234 2200
2235 } } // namespace v8::internal 2201 } } // namespace v8::internal
2236 2202
2237 #endif // V8_TARGET_ARCH_X64 2203 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.h ('k') | test/mjsunit/switch.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698