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

Side by Side Diff: src/hydrogen-instructions.h

Issue 21371004: Make sure that bce creates constants of right type (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | « src/hydrogen-bce.cc ('k') | no next file » | 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 3626 matching lines...) Expand 10 before | Expand all | Expand 10 after
3637 3637
3638 virtual bool IsDeletable() const { return true; } 3638 virtual bool IsDeletable() const { return true; }
3639 3639
3640 ZoneList<HValue*> values_; 3640 ZoneList<HValue*> values_;
3641 }; 3641 };
3642 3642
3643 3643
3644 class HConstant: public HTemplateInstruction<0> { 3644 class HConstant: public HTemplateInstruction<0> {
3645 public: 3645 public:
3646 DECLARE_INSTRUCTION_FACTORY_P1(HConstant, int32_t); 3646 DECLARE_INSTRUCTION_FACTORY_P1(HConstant, int32_t);
3647 DECLARE_INSTRUCTION_FACTORY_P2(HConstant, int32_t, Representation);
3647 DECLARE_INSTRUCTION_FACTORY_P1(HConstant, double); 3648 DECLARE_INSTRUCTION_FACTORY_P1(HConstant, double);
3648 DECLARE_INSTRUCTION_FACTORY_P1(HConstant, Handle<Object>); 3649 DECLARE_INSTRUCTION_FACTORY_P1(HConstant, Handle<Object>);
3649 DECLARE_INSTRUCTION_FACTORY_P1(HConstant, ExternalReference); 3650 DECLARE_INSTRUCTION_FACTORY_P1(HConstant, ExternalReference);
3650 3651
3651 Handle<Object> handle() { 3652 Handle<Object> handle() {
3652 if (handle_.is_null()) { 3653 if (handle_.is_null()) {
3653 Factory* factory = Isolate::Current()->factory(); 3654 Factory* factory = Isolate::Current()->factory();
3654 // Default arguments to is_not_in_new_space depend on this heap number 3655 // Default arguments to is_not_in_new_space depend on this heap number
3655 // to be tenured so that it's guaranteed not be be located in new space. 3656 // to be tenured so that it's guaranteed not be be located in new space.
3656 handle_ = factory->NewNumber(double_value_, TENURED); 3657 handle_ = factory->NewNumber(double_value_, TENURED);
(...skipping 3612 matching lines...) Expand 10 before | Expand all | Expand 10 after
7269 virtual bool IsDeletable() const { return true; } 7270 virtual bool IsDeletable() const { return true; }
7270 }; 7271 };
7271 7272
7272 7273
7273 #undef DECLARE_INSTRUCTION 7274 #undef DECLARE_INSTRUCTION
7274 #undef DECLARE_CONCRETE_INSTRUCTION 7275 #undef DECLARE_CONCRETE_INSTRUCTION
7275 7276
7276 } } // namespace v8::internal 7277 } } // namespace v8::internal
7277 7278
7278 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7279 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen-bce.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698