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

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

Issue 137953008: The uninitialized value is immortal immovable. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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 | « no previous file | 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 3392 matching lines...) Expand 10 before | Expand all | Expand 10 after
3403 if (has_external_reference_value_) { 3403 if (has_external_reference_value_) {
3404 return false; 3404 return false;
3405 } 3405 }
3406 3406
3407 ASSERT(!object_.handle().is_null()); 3407 ASSERT(!object_.handle().is_null());
3408 Heap* heap = isolate()->heap(); 3408 Heap* heap = isolate()->heap();
3409 ASSERT(!object_.IsKnownGlobal(heap->minus_zero_value())); 3409 ASSERT(!object_.IsKnownGlobal(heap->minus_zero_value()));
3410 ASSERT(!object_.IsKnownGlobal(heap->nan_value())); 3410 ASSERT(!object_.IsKnownGlobal(heap->nan_value()));
3411 return 3411 return
3412 object_.IsKnownGlobal(heap->undefined_value()) || 3412 object_.IsKnownGlobal(heap->undefined_value()) ||
3413 object_.IsKnownGlobal(heap->uninitialized_value()) ||
3413 object_.IsKnownGlobal(heap->null_value()) || 3414 object_.IsKnownGlobal(heap->null_value()) ||
3414 object_.IsKnownGlobal(heap->true_value()) || 3415 object_.IsKnownGlobal(heap->true_value()) ||
3415 object_.IsKnownGlobal(heap->false_value()) || 3416 object_.IsKnownGlobal(heap->false_value()) ||
3416 object_.IsKnownGlobal(heap->the_hole_value()) || 3417 object_.IsKnownGlobal(heap->the_hole_value()) ||
3417 object_.IsKnownGlobal(heap->empty_string()) || 3418 object_.IsKnownGlobal(heap->empty_string()) ||
3418 object_.IsKnownGlobal(heap->empty_fixed_array()); 3419 object_.IsKnownGlobal(heap->empty_fixed_array());
3419 } 3420 }
3420 3421
3421 bool IsCell() const { 3422 bool IsCell() const {
3422 return is_cell_; 3423 return is_cell_;
(...skipping 3983 matching lines...) Expand 10 before | Expand all | Expand 10 after
7406 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 7407 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
7407 }; 7408 };
7408 7409
7409 7410
7410 #undef DECLARE_INSTRUCTION 7411 #undef DECLARE_INSTRUCTION
7411 #undef DECLARE_CONCRETE_INSTRUCTION 7412 #undef DECLARE_CONCRETE_INSTRUCTION
7412 7413
7413 } } // namespace v8::internal 7414 } } // namespace v8::internal
7414 7415
7415 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7416 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698