OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 3351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3362 } | 3362 } |
3363 | 3363 |
3364 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric) | 3364 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric) |
3365 | 3365 |
3366 private: | 3366 private: |
3367 Handle<Object> name_; | 3367 Handle<Object> name_; |
3368 bool for_typeof_; | 3368 bool for_typeof_; |
3369 }; | 3369 }; |
3370 | 3370 |
3371 | 3371 |
3372 static inline bool StoringValueNeedsWriteBarrier(HValue* value) { | 3372 inline bool StoringValueNeedsWriteBarrier(HValue* value) { |
3373 return !value->type().IsBoolean() | 3373 return !value->type().IsBoolean() |
3374 && !value->type().IsSmi() | 3374 && !value->type().IsSmi() |
3375 && !(value->IsConstant() && HConstant::cast(value)->ImmortalImmovable()); | 3375 && !(value->IsConstant() && HConstant::cast(value)->ImmortalImmovable()); |
3376 } | 3376 } |
3377 | 3377 |
3378 | 3378 |
3379 class HStoreGlobalCell: public HUnaryOperation { | 3379 class HStoreGlobalCell: public HUnaryOperation { |
3380 public: | 3380 public: |
3381 HStoreGlobalCell(HValue* value, | 3381 HStoreGlobalCell(HValue* value, |
3382 Handle<JSGlobalPropertyCell> cell, | 3382 Handle<JSGlobalPropertyCell> cell, |
(...skipping 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4390 | 4390 |
4391 DECLARE_CONCRETE_INSTRUCTION(In) | 4391 DECLARE_CONCRETE_INSTRUCTION(In) |
4392 }; | 4392 }; |
4393 | 4393 |
4394 #undef DECLARE_INSTRUCTION | 4394 #undef DECLARE_INSTRUCTION |
4395 #undef DECLARE_CONCRETE_INSTRUCTION | 4395 #undef DECLARE_CONCRETE_INSTRUCTION |
4396 | 4396 |
4397 } } // namespace v8::internal | 4397 } } // namespace v8::internal |
4398 | 4398 |
4399 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 4399 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |