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

Side by Side Diff: src/ia32/codegen-ia32.h

Issue 1233003: Speed up conversion of untagged int32 result if we know it must be a smi. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 9 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/ast.cc ('k') | src/ia32/codegen-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 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
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
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_
OLDNEW
« no previous file with comments | « src/ast.cc ('k') | src/ia32/codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698