OLD | NEW |
---|---|
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/api.h" | 7 #include "src/api.h" |
8 #include "src/arguments.h" | 8 #include "src/arguments.h" |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/builtins.h" | 10 #include "src/builtins.h" |
(...skipping 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1527 int name; | 1527 int name; |
1528 Code::Flags flags; | 1528 Code::Flags flags; |
1529 BuiltinExtraArguments extra_args; | 1529 BuiltinExtraArguments extra_args; |
1530 }; | 1530 }; |
1531 | 1531 |
1532 #define BUILTIN_FUNCTION_TABLE_INIT { V8_ONCE_INIT, {} } | 1532 #define BUILTIN_FUNCTION_TABLE_INIT { V8_ONCE_INIT, {} } |
1533 | 1533 |
1534 class BuiltinFunctionTable { | 1534 class BuiltinFunctionTable { |
1535 public: | 1535 public: |
1536 BuiltinDesc* functions() { | 1536 BuiltinDesc* functions() { |
1537 CallOnce(&once_, &Builtins::InitBuiltinFunctionTable); | 1537 base::CallOnce(&once_, &Builtins::InitBuiltinFunctionTable); |
Jakob Kummerow
2014/06/05 11:49:06
IWYU?
| |
1538 return functions_; | 1538 return functions_; |
1539 } | 1539 } |
1540 | 1540 |
1541 OnceType once_; | 1541 base::OnceType once_; |
1542 BuiltinDesc functions_[Builtins::builtin_count + 1]; | 1542 BuiltinDesc functions_[Builtins::builtin_count + 1]; |
1543 | 1543 |
1544 friend class Builtins; | 1544 friend class Builtins; |
1545 }; | 1545 }; |
1546 | 1546 |
1547 static BuiltinFunctionTable builtin_function_table = | 1547 static BuiltinFunctionTable builtin_function_table = |
1548 BUILTIN_FUNCTION_TABLE_INIT; | 1548 BUILTIN_FUNCTION_TABLE_INIT; |
1549 | 1549 |
1550 // Define array of pointers to generators and C builtin functions. | 1550 // Define array of pointers to generators and C builtin functions. |
1551 // We do this in a sort of roundabout way so that we can do the initialization | 1551 // We do this in a sort of roundabout way so that we can do the initialization |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1716 } | 1716 } |
1717 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C) | 1717 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C) |
1718 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A) | 1718 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A) |
1719 BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H) | 1719 BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H) |
1720 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) | 1720 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) |
1721 #undef DEFINE_BUILTIN_ACCESSOR_C | 1721 #undef DEFINE_BUILTIN_ACCESSOR_C |
1722 #undef DEFINE_BUILTIN_ACCESSOR_A | 1722 #undef DEFINE_BUILTIN_ACCESSOR_A |
1723 | 1723 |
1724 | 1724 |
1725 } } // namespace v8::internal | 1725 } } // namespace v8::internal |
OLD | NEW |