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

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

Issue 11143005: Update ReceiverObjectNeedsWriteBarrier to include HFastLiteral (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 1 month 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 | « AUTHORS ('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 3817 matching lines...) Expand 10 before | Expand all | Expand 10 after
3828 3828
3829 inline bool StoringValueNeedsWriteBarrier(HValue* value) { 3829 inline bool StoringValueNeedsWriteBarrier(HValue* value) {
3830 return !value->type().IsBoolean() 3830 return !value->type().IsBoolean()
3831 && !value->type().IsSmi() 3831 && !value->type().IsSmi()
3832 && !(value->IsConstant() && HConstant::cast(value)->ImmortalImmovable()); 3832 && !(value->IsConstant() && HConstant::cast(value)->ImmortalImmovable());
3833 } 3833 }
3834 3834
3835 3835
3836 inline bool ReceiverObjectNeedsWriteBarrier(HValue* object, 3836 inline bool ReceiverObjectNeedsWriteBarrier(HValue* object,
3837 HValue* new_space_dominator) { 3837 HValue* new_space_dominator) {
3838 return !object->IsAllocateObject() || (object != new_space_dominator); 3838 return (!object->IsAllocateObject() && !object->IsFastLiteral()) ||
3839 object != new_space_dominator;
3839 } 3840 }
3840 3841
3841 3842
3842 class HStoreGlobalCell: public HUnaryOperation { 3843 class HStoreGlobalCell: public HUnaryOperation {
3843 public: 3844 public:
3844 HStoreGlobalCell(HValue* value, 3845 HStoreGlobalCell(HValue* value,
3845 Handle<JSGlobalPropertyCell> cell, 3846 Handle<JSGlobalPropertyCell> cell,
3846 PropertyDetails details) 3847 PropertyDetails details)
3847 : HUnaryOperation(value), 3848 : HUnaryOperation(value),
3848 cell_(cell), 3849 cell_(cell),
(...skipping 1440 matching lines...) Expand 10 before | Expand all | Expand 10 after
5289 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); 5290 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex);
5290 }; 5291 };
5291 5292
5292 5293
5293 #undef DECLARE_INSTRUCTION 5294 #undef DECLARE_INSTRUCTION
5294 #undef DECLARE_CONCRETE_INSTRUCTION 5295 #undef DECLARE_CONCRETE_INSTRUCTION
5295 5296
5296 } } // namespace v8::internal 5297 } } // namespace v8::internal
5297 5298
5298 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 5299 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698