OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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/builtins/builtins-utils.h" | 5 #include "src/builtins/builtins-utils.h" |
6 #include "src/builtins/builtins.h" | 6 #include "src/builtins/builtins.h" |
7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
8 #include "src/code-stub-assembler.h" | 8 #include "src/code-stub-assembler.h" |
9 #include "src/objects-inl.h" | 9 #include "src/objects-inl.h" |
10 | 10 |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 // Deprecated ES5 [[Class]] internal property (used to implement %_ClassOf). | 400 // Deprecated ES5 [[Class]] internal property (used to implement %_ClassOf). |
401 TF_BUILTIN(ClassOf, CodeStubAssembler) { | 401 TF_BUILTIN(ClassOf, CodeStubAssembler) { |
402 Node* object = Parameter(TypeofDescriptor::kObject); | 402 Node* object = Parameter(TypeofDescriptor::kObject); |
403 | 403 |
404 Return(ClassOf(object)); | 404 Return(ClassOf(object)); |
405 } | 405 } |
406 | 406 |
407 // ES6 section 12.5.5 typeof operator | 407 // ES6 section 12.5.5 typeof operator |
408 TF_BUILTIN(Typeof, CodeStubAssembler) { | 408 TF_BUILTIN(Typeof, CodeStubAssembler) { |
409 Node* object = Parameter(TypeofDescriptor::kObject); | 409 Node* object = Parameter(TypeofDescriptor::kObject); |
410 Node* context = Parameter(TypeofDescriptor::kContext); | |
411 | 410 |
412 Return(Typeof(object, context)); | 411 Return(Typeof(object)); |
413 } | 412 } |
414 | 413 |
415 } // namespace internal | 414 } // namespace internal |
416 } // namespace v8 | 415 } // namespace v8 |
OLD | NEW |