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

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

Issue 6581036: X64: Implement DoHasInstanceType (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 10 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
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 1484 matching lines...) Expand 10 before | Expand all | Expand 10 after
1495 1495
1496 LInstruction* LChunkBuilder::DoIsSmi(HIsSmi* instr) { 1496 LInstruction* LChunkBuilder::DoIsSmi(HIsSmi* instr) {
1497 ASSERT(instr->value()->representation().IsTagged()); 1497 ASSERT(instr->value()->representation().IsTagged());
1498 LOperand* value = UseAtStart(instr->value()); 1498 LOperand* value = UseAtStart(instr->value());
1499 1499
1500 return DefineAsRegister(new LIsSmi(value)); 1500 return DefineAsRegister(new LIsSmi(value));
1501 } 1501 }
1502 1502
1503 1503
1504 LInstruction* LChunkBuilder::DoHasInstanceType(HHasInstanceType* instr) { 1504 LInstruction* LChunkBuilder::DoHasInstanceType(HHasInstanceType* instr) {
1505 Abort("Unimplemented: %s", "DoHasInstanceType"); 1505 ASSERT(instr->value()->representation().IsTagged());
1506 return NULL; 1506 LOperand* value = UseRegisterAtStart(instr->value());
1507
1508 return DefineAsRegister(new LHasInstanceType(value));
1507 } 1509 }
1508 1510
1509 1511
1510 LInstruction* LChunkBuilder::DoGetCachedArrayIndex( 1512 LInstruction* LChunkBuilder::DoGetCachedArrayIndex(
1511 HGetCachedArrayIndex* instr) { 1513 HGetCachedArrayIndex* instr) {
1512 Abort("Unimplemented: %s", "DoGetCachedArrayIndex"); 1514 Abort("Unimplemented: %s", "DoGetCachedArrayIndex");
1513 return NULL; 1515 return NULL;
1514 } 1516 }
1515 1517
1516 1518
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
2019 2021
2020 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2022 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2021 HEnvironment* outer = current_block_->last_environment()->outer(); 2023 HEnvironment* outer = current_block_->last_environment()->outer();
2022 current_block_->UpdateEnvironment(outer); 2024 current_block_->UpdateEnvironment(outer);
2023 return NULL; 2025 return NULL;
2024 } 2026 }
2025 2027
2026 } } // namespace v8::internal 2028 } } // namespace v8::internal
2027 2029
2028 #endif // V8_TARGET_ARCH_X64 2030 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/x64/lithium-codegen-x64.cc ('K') | « src/x64/lithium-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698