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

Side by Side Diff: src/arm/lithium-arm.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/arm/full-codegen-arm.cc ('k') | src/arm/lithium-codegen-arm.cc » ('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 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after
1555 LOperand* object = UseRegister(instr->value()); 1555 LOperand* object = UseRegister(instr->value());
1556 LValueOf* result = new(zone()) LValueOf(object, TempRegister()); 1556 LValueOf* result = new(zone()) LValueOf(object, TempRegister());
1557 return DefineAsRegister(result); 1557 return DefineAsRegister(result);
1558 } 1558 }
1559 1559
1560 1560
1561 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { 1561 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) {
1562 LOperand* object = UseFixed(instr->value(), r0); 1562 LOperand* object = UseFixed(instr->value(), r0);
1563 LDateField* result = 1563 LDateField* result =
1564 new(zone()) LDateField(object, FixedTemp(r1), instr->index()); 1564 new(zone()) LDateField(object, FixedTemp(r1), instr->index());
1565 return MarkAsCall(DefineFixed(result, r0), instr); 1565 return MarkAsCall(DefineFixed(result, r0), instr, CAN_DEOPTIMIZE_EAGERLY);
1566 } 1566 }
1567 1567
1568 1568
1569 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { 1569 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) {
1570 LOperand* value = UseRegisterOrConstantAtStart(instr->index()); 1570 LOperand* value = UseRegisterOrConstantAtStart(instr->index());
1571 LOperand* length = UseRegister(instr->length()); 1571 LOperand* length = UseRegister(instr->length());
1572 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); 1572 return AssignEnvironment(new(zone()) LBoundsCheck(value, length));
1573 } 1573 }
1574 1574
1575 1575
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
2309 2309
2310 2310
2311 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2311 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2312 LOperand* object = UseRegister(instr->object()); 2312 LOperand* object = UseRegister(instr->object());
2313 LOperand* index = UseRegister(instr->index()); 2313 LOperand* index = UseRegister(instr->index());
2314 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2314 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2315 } 2315 }
2316 2316
2317 2317
2318 } } // namespace v8::internal 2318 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698