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

Side by Side Diff: src/runtime/runtime-interpreter.cc

Issue 1683643002: Mark null and undefined as undetectable, and use it to handle abstract equality comparison in the g… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
« no previous file with comments | « src/objects.cc ('k') | src/x64/code-stubs-x64.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 #include "src/runtime/runtime-utils.h" 5 #include "src/runtime/runtime-utils.h"
6 6
7 #include <iomanip> 7 #include <iomanip>
8 8
9 #include "src/arguments.h" 9 #include "src/arguments.h"
10 #include "src/frames-inl.h" 10 #include "src/frames-inl.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 RUNTIME_FUNCTION(Runtime_InterpreterLogicalNot) { 129 RUNTIME_FUNCTION(Runtime_InterpreterLogicalNot) {
130 SealHandleScope shs(isolate); 130 SealHandleScope shs(isolate);
131 DCHECK_EQ(1, args.length()); 131 DCHECK_EQ(1, args.length());
132 CONVERT_ARG_CHECKED(Object, x, 0); 132 CONVERT_ARG_CHECKED(Object, x, 0);
133 return isolate->heap()->ToBoolean(!x->BooleanValue()); 133 return isolate->heap()->ToBoolean(!x->BooleanValue());
134 } 134 }
135 135
136 136
137 RUNTIME_FUNCTION(Runtime_InterpreterTypeOf) { 137 RUNTIME_FUNCTION(Runtime_InterpreterTypeOf) {
138 SealHandleScope shs(isolate); 138 HandleScope shs(isolate);
139 DCHECK_EQ(1, args.length()); 139 DCHECK_EQ(1, args.length());
140 CONVERT_ARG_HANDLE_CHECKED(Object, x, 0); 140 CONVERT_ARG_HANDLE_CHECKED(Object, x, 0);
141 return Object::cast(*Object::TypeOf(isolate, x)); 141 return Object::cast(*Object::TypeOf(isolate, x));
142 } 142 }
143 143
144 144
145 RUNTIME_FUNCTION(Runtime_InterpreterNewClosure) { 145 RUNTIME_FUNCTION(Runtime_InterpreterNewClosure) {
146 HandleScope scope(isolate); 146 HandleScope scope(isolate);
147 DCHECK_EQ(2, args.length()); 147 DCHECK_EQ(2, args.length());
148 CONVERT_ARG_HANDLE_CHECKED(SharedFunctionInfo, shared, 0); 148 CONVERT_ARG_HANDLE_CHECKED(SharedFunctionInfo, shared, 0);
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 RUNTIME_FUNCTION(Runtime_InterpreterSetPendingMessage) { 264 RUNTIME_FUNCTION(Runtime_InterpreterSetPendingMessage) {
265 SealHandleScope shs(isolate); 265 SealHandleScope shs(isolate);
266 DCHECK_EQ(1, args.length()); 266 DCHECK_EQ(1, args.length());
267 CONVERT_ARG_HANDLE_CHECKED(Object, message, 0); 267 CONVERT_ARG_HANDLE_CHECKED(Object, message, 0);
268 isolate->thread_local_top()->pending_message_obj_ = *message; 268 isolate->thread_local_top()->pending_message_obj_ = *message;
269 return isolate->heap()->undefined_value(); 269 return isolate->heap()->undefined_value();
270 } 270 }
271 271
272 } // namespace internal 272 } // namespace internal
273 } // namespace v8 273 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698