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 #ifndef V8_BUILTINS_BUILTINS_UTILS_H_ | 5 #ifndef V8_BUILTINS_BUILTINS_UTILS_H_ |
6 #define V8_BUILTINS_BUILTINS_UTILS_H_ | 6 #define V8_BUILTINS_BUILTINS_UTILS_H_ |
7 | 7 |
8 #include "src/arguments.h" | 8 #include "src/arguments.h" |
9 #include "src/base/logging.h" | 9 #include "src/base/logging.h" |
10 #include "src/builtins/builtins.h" | 10 #include "src/builtins/builtins.h" |
11 #include "src/code-stub-assembler.h" | 11 #include "src/code-stub-assembler.h" |
epertoso
2016/12/06 10:38:17
Remove it from here?
Igor Sheludko
2016/12/06 10:43:46
Aghr! Leftover. Thanks!
| |
12 | 12 |
13 namespace v8 { | 13 namespace v8 { |
14 namespace internal { | 14 namespace internal { |
15 | 15 |
16 namespace compiler { | |
17 class CodeAssemblerState; | |
18 } | |
19 | |
16 // Arguments object passed to C++ builtins. | 20 // Arguments object passed to C++ builtins. |
17 class BuiltinArguments : public Arguments { | 21 class BuiltinArguments : public Arguments { |
18 public: | 22 public: |
19 BuiltinArguments(int length, Object** arguments) | 23 BuiltinArguments(int length, Object** arguments) |
20 : Arguments(length, arguments) { | 24 : Arguments(length, arguments) { |
21 // Check we have at least the receiver. | 25 // Check we have at least the receiver. |
22 DCHECK_LE(1, this->length()); | 26 DCHECK_LE(1, this->length()); |
23 } | 27 } |
24 | 28 |
25 Object*& operator[](int index) { | 29 Object*& operator[](int index) { |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
150 isolate->factory()->NewStringFromAsciiChecked(method))); \ | 154 isolate->factory()->NewStringFromAsciiChecked(method))); \ |
151 } \ | 155 } \ |
152 Handle<String> name; \ | 156 Handle<String> name; \ |
153 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( \ | 157 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( \ |
154 isolate, name, Object::ToString(isolate, args.receiver())) | 158 isolate, name, Object::ToString(isolate, args.receiver())) |
155 | 159 |
156 } // namespace internal | 160 } // namespace internal |
157 } // namespace v8 | 161 } // namespace v8 |
158 | 162 |
159 #endif // V8_BUILTINS_BUILTINS_UTILS_H_ | 163 #endif // V8_BUILTINS_BUILTINS_UTILS_H_ |
OLD | NEW |