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

Side by Side Diff: src/arm/lithium-codegen-arm.h

Issue 10829456: Check that index and length are Smi in bounds check. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Porting changes to ARM and ia32 Created 8 years, 4 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 | « no previous file | 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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 290
291 static Condition TokenToCondition(Token::Value op, bool is_unsigned); 291 static Condition TokenToCondition(Token::Value op, bool is_unsigned);
292 void EmitGoto(int block); 292 void EmitGoto(int block);
293 void EmitBranch(int left_block, int right_block, Condition cc); 293 void EmitBranch(int left_block, int right_block, Condition cc);
294 void EmitNumberUntagD(Register input, 294 void EmitNumberUntagD(Register input,
295 DoubleRegister result, 295 DoubleRegister result,
296 bool deoptimize_on_undefined, 296 bool deoptimize_on_undefined,
297 bool deoptimize_on_minus_zero, 297 bool deoptimize_on_minus_zero,
298 LEnvironment* env); 298 LEnvironment* env);
299 299
300 void DeoptIfTaggedButNotSmi(LEnvironment* environment,
301 HValue* value,
302 LOperand* operand);
303
300 // Emits optimized code for typeof x == "y". Modifies input register. 304 // Emits optimized code for typeof x == "y". Modifies input register.
301 // Returns the condition on which a final split to 305 // Returns the condition on which a final split to
302 // true and false label should be made, to optimize fallthrough. 306 // true and false label should be made, to optimize fallthrough.
303 Condition EmitTypeofIs(Label* true_label, 307 Condition EmitTypeofIs(Label* true_label,
304 Label* false_label, 308 Label* false_label,
305 Register input, 309 Register input,
306 Handle<String> type_name); 310 Handle<String> type_name);
307 311
308 // Emits optimized code for %_IsObject(x). Preserves input register. 312 // Emits optimized code for %_IsObject(x). Preserves input register.
309 // Returns the condition on which a final split to 313 // Returns the condition on which a final split to
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 LCodeGen* codegen_; 463 LCodeGen* codegen_;
460 Label entry_; 464 Label entry_;
461 Label exit_; 465 Label exit_;
462 Label* external_exit_; 466 Label* external_exit_;
463 int instruction_index_; 467 int instruction_index_;
464 }; 468 };
465 469
466 } } // namespace v8::internal 470 } } // namespace v8::internal
467 471
468 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ 472 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698