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

Side by Side Diff: src/isolate-inl.h

Issue 2028983002: Introduce IsUndefined(Isolate*) and IsTheHole(Isolate*) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase master Created 4 years, 6 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
« no previous file with comments | « src/isolate.cc ('k') | src/json-parser.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_ISOLATE_INL_H_ 5 #ifndef V8_ISOLATE_INL_H_
6 #define V8_ISOLATE_INL_H_ 6 #define V8_ISOLATE_INL_H_
7 7
8 #include "src/isolate.h" 8 #include "src/isolate.h"
9 #include "src/objects-inl.h" 9 #include "src/objects-inl.h"
10 10
(...skipping 21 matching lines...) Expand all
32 32
33 33
34 void Isolate::clear_pending_exception() { 34 void Isolate::clear_pending_exception() {
35 DCHECK(!thread_local_top_.pending_exception_->IsException()); 35 DCHECK(!thread_local_top_.pending_exception_->IsException());
36 thread_local_top_.pending_exception_ = heap_.the_hole_value(); 36 thread_local_top_.pending_exception_ = heap_.the_hole_value();
37 } 37 }
38 38
39 39
40 bool Isolate::has_pending_exception() { 40 bool Isolate::has_pending_exception() {
41 DCHECK(!thread_local_top_.pending_exception_->IsException()); 41 DCHECK(!thread_local_top_.pending_exception_->IsException());
42 return !thread_local_top_.pending_exception_->IsTheHole(); 42 return !thread_local_top_.pending_exception_->IsTheHole(this);
43 } 43 }
44 44
45 45
46 void Isolate::clear_pending_message() { 46 void Isolate::clear_pending_message() {
47 thread_local_top_.pending_message_obj_ = heap_.the_hole_value(); 47 thread_local_top_.pending_message_obj_ = heap_.the_hole_value();
48 } 48 }
49 49
50 50
51 Object* Isolate::scheduled_exception() { 51 Object* Isolate::scheduled_exception() {
52 DCHECK(has_scheduled_exception()); 52 DCHECK(has_scheduled_exception());
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 bool Isolate::IsHasInstanceLookupChainIntact() { 123 bool Isolate::IsHasInstanceLookupChainIntact() {
124 if (!FLAG_harmony_instanceof) return true; 124 if (!FLAG_harmony_instanceof) return true;
125 PropertyCell* has_instance_cell = heap()->has_instance_protector(); 125 PropertyCell* has_instance_cell = heap()->has_instance_protector();
126 return has_instance_cell->value() == Smi::FromInt(kArrayProtectorValid); 126 return has_instance_cell->value() == Smi::FromInt(kArrayProtectorValid);
127 } 127 }
128 128
129 } // namespace internal 129 } // namespace internal
130 } // namespace v8 130 } // namespace v8
131 131
132 #endif // V8_ISOLATE_INL_H_ 132 #endif // V8_ISOLATE_INL_H_
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/json-parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698