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

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

Issue 10915062: Add checks to runtime functions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 3 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/mips/lithium-codegen-mips.cc ('k') | src/objects.h » ('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 1483 matching lines...) Expand 10 before | Expand all | Expand 10 after
1494 LOperand* object = UseRegister(instr->value()); 1494 LOperand* object = UseRegister(instr->value());
1495 LValueOf* result = new(zone()) LValueOf(object, TempRegister()); 1495 LValueOf* result = new(zone()) LValueOf(object, TempRegister());
1496 return DefineAsRegister(result); 1496 return DefineAsRegister(result);
1497 } 1497 }
1498 1498
1499 1499
1500 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { 1500 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) {
1501 LOperand* object = UseFixed(instr->value(), a0); 1501 LOperand* object = UseFixed(instr->value(), a0);
1502 LDateField* result = 1502 LDateField* result =
1503 new(zone()) LDateField(object, FixedTemp(a1), instr->index()); 1503 new(zone()) LDateField(object, FixedTemp(a1), instr->index());
1504 return MarkAsCall(DefineFixed(result, v0), instr); 1504 return MarkAsCall(DefineFixed(result, v0), instr, CAN_DEOPTIMIZE_EAGERLY);
1505 } 1505 }
1506 1506
1507 1507
1508 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { 1508 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) {
1509 LOperand* value = UseRegisterOrConstantAtStart(instr->index()); 1509 LOperand* value = UseRegisterOrConstantAtStart(instr->index());
1510 LOperand* length = UseRegister(instr->length()); 1510 LOperand* length = UseRegister(instr->length());
1511 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); 1511 return AssignEnvironment(new(zone()) LBoundsCheck(value, length));
1512 } 1512 }
1513 1513
1514 1514
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
2251 2251
2252 2252
2253 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2253 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2254 LOperand* object = UseRegister(instr->object()); 2254 LOperand* object = UseRegister(instr->object());
2255 LOperand* index = UseRegister(instr->index()); 2255 LOperand* index = UseRegister(instr->index());
2256 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2256 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2257 } 2257 }
2258 2258
2259 2259
2260 } } // namespace v8::internal 2260 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698