| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 class BuiltinFunctionTable; | 285 class BuiltinFunctionTable; |
| 286 class ObjectVisitor; | 286 class ObjectVisitor; |
| 287 | 287 |
| 288 | 288 |
| 289 class Builtins { | 289 class Builtins { |
| 290 public: | 290 public: |
| 291 ~Builtins(); | 291 ~Builtins(); |
| 292 | 292 |
| 293 // Generate all builtin code objects. Should be called once during | 293 // Generate all builtin code objects. Should be called once during |
| 294 // isolate initialization. | 294 // isolate initialization. |
| 295 void SetUp(bool create_heap_objects); | 295 void SetUp(Isolate* isolate, bool create_heap_objects); |
| 296 void TearDown(); | 296 void TearDown(); |
| 297 | 297 |
| 298 // Garbage collection support. | 298 // Garbage collection support. |
| 299 void IterateBuiltins(ObjectVisitor* v); | 299 void IterateBuiltins(ObjectVisitor* v); |
| 300 | 300 |
| 301 // Disassembler support. | 301 // Disassembler support. |
| 302 const char* Lookup(byte* pc); | 302 const char* Lookup(byte* pc); |
| 303 | 303 |
| 304 enum Name { | 304 enum Name { |
| 305 #define DEF_ENUM_C(name, ignore) k##name, | 305 #define DEF_ENUM_C(name, ignore) k##name, |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 | 416 |
| 417 friend class BuiltinFunctionTable; | 417 friend class BuiltinFunctionTable; |
| 418 friend class Isolate; | 418 friend class Isolate; |
| 419 | 419 |
| 420 DISALLOW_COPY_AND_ASSIGN(Builtins); | 420 DISALLOW_COPY_AND_ASSIGN(Builtins); |
| 421 }; | 421 }; |
| 422 | 422 |
| 423 } } // namespace v8::internal | 423 } } // namespace v8::internal |
| 424 | 424 |
| 425 #endif // V8_BUILTINS_H_ | 425 #endif // V8_BUILTINS_H_ |
| OLD | NEW |