OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 void set_safe_int32_mode_enabled(bool value) { | 366 void set_safe_int32_mode_enabled(bool value) { |
367 safe_int32_mode_enabled_ = value; | 367 safe_int32_mode_enabled_ = value; |
368 } | 368 } |
369 void set_unsafe_bailout(BreakTarget* unsafe_bailout) { | 369 void set_unsafe_bailout(BreakTarget* unsafe_bailout) { |
370 unsafe_bailout_ = unsafe_bailout; | 370 unsafe_bailout_ = unsafe_bailout; |
371 } | 371 } |
372 | 372 |
373 // Take the Result that is an untagged int32, and convert it to a tagged | 373 // Take the Result that is an untagged int32, and convert it to a tagged |
374 // Smi or HeapNumber. Remove the untagged_int32 flag from the result. | 374 // Smi or HeapNumber. Remove the untagged_int32 flag from the result. |
375 void ConvertInt32ResultToNumber(Result* value); | 375 void ConvertInt32ResultToNumber(Result* value); |
| 376 void ConvertInt32ResultToSmi(Result* value); |
376 | 377 |
377 // Track loop nesting level. | 378 // Track loop nesting level. |
378 int loop_nesting() const { return loop_nesting_; } | 379 int loop_nesting() const { return loop_nesting_; } |
379 void IncrementLoopNesting() { loop_nesting_++; } | 380 void IncrementLoopNesting() { loop_nesting_++; } |
380 void DecrementLoopNesting() { loop_nesting_--; } | 381 void DecrementLoopNesting() { loop_nesting_--; } |
381 | 382 |
382 // Node visitors. | 383 // Node visitors. |
383 void VisitStatements(ZoneList<Statement*>* statements); | 384 void VisitStatements(ZoneList<Statement*>* statements); |
384 | 385 |
385 #define DEF_VISIT(type) \ | 386 #define DEF_VISIT(type) \ |
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1050 return ObjectBits::encode(object_.code()) | | 1051 return ObjectBits::encode(object_.code()) | |
1051 AddressBits::encode(addr_.code()) | | 1052 AddressBits::encode(addr_.code()) | |
1052 ScratchBits::encode(scratch_.code()); | 1053 ScratchBits::encode(scratch_.code()); |
1053 } | 1054 } |
1054 }; | 1055 }; |
1055 | 1056 |
1056 | 1057 |
1057 } } // namespace v8::internal | 1058 } } // namespace v8::internal |
1058 | 1059 |
1059 #endif // V8_IA32_CODEGEN_IA32_H_ | 1060 #endif // V8_IA32_CODEGEN_IA32_H_ |
OLD | NEW |