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

Side by Side Diff: src/ia32/macro-assembler-ia32.h

Issue 578583002: Fixed deopt reasons in TaggedToI. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed feedback Created 6 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/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/macro-assembler-ia32.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_ 5 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_
6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_ 6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/frames.h" 9 #include "src/frames.h"
10 #include "src/globals.h" 10 #include "src/globals.h"
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 void SlowTruncateToI(Register result_reg, Register input_reg, 459 void SlowTruncateToI(Register result_reg, Register input_reg,
460 int offset = HeapNumber::kValueOffset - kHeapObjectTag); 460 int offset = HeapNumber::kValueOffset - kHeapObjectTag);
461 461
462 void TruncateHeapNumberToI(Register result_reg, Register input_reg); 462 void TruncateHeapNumberToI(Register result_reg, Register input_reg);
463 void TruncateDoubleToI(Register result_reg, XMMRegister input_reg); 463 void TruncateDoubleToI(Register result_reg, XMMRegister input_reg);
464 464
465 void DoubleToI(Register result_reg, XMMRegister input_reg, 465 void DoubleToI(Register result_reg, XMMRegister input_reg,
466 XMMRegister scratch, MinusZeroMode minus_zero_mode, 466 XMMRegister scratch, MinusZeroMode minus_zero_mode,
467 Label* conversion_failed, Label::Distance dst = Label::kFar); 467 Label* conversion_failed, Label::Distance dst = Label::kFar);
468 468
469 void TaggedToI(Register result_reg, Register input_reg, XMMRegister temp,
470 MinusZeroMode minus_zero_mode, Label* lost_precision);
471
472 // Smi tagging support. 469 // Smi tagging support.
473 void SmiTag(Register reg) { 470 void SmiTag(Register reg) {
474 STATIC_ASSERT(kSmiTag == 0); 471 STATIC_ASSERT(kSmiTag == 0);
475 STATIC_ASSERT(kSmiTagSize == 1); 472 STATIC_ASSERT(kSmiTagSize == 1);
476 add(reg, reg); 473 add(reg, reg);
477 } 474 }
478 void SmiUntag(Register reg) { 475 void SmiUntag(Register reg) {
479 sar(reg, kSmiTagSize); 476 sar(reg, kSmiTagSize);
480 } 477 }
481 478
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
1105 } \ 1102 } \
1106 masm-> 1103 masm->
1107 #else 1104 #else
1108 #define ACCESS_MASM(masm) masm-> 1105 #define ACCESS_MASM(masm) masm->
1109 #endif 1106 #endif
1110 1107
1111 1108
1112 } } // namespace v8::internal 1109 } } // namespace v8::internal
1113 1110
1114 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1111 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698