OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 | 366 |
367 // An ExternalReference represents a C++ address used in the generated | 367 // An ExternalReference represents a C++ address used in the generated |
368 // code. All references to C++ functions and variables must be encapsulated in | 368 // code. All references to C++ functions and variables must be encapsulated in |
369 // an ExternalReference instance. This is done in order to track the origin of | 369 // an ExternalReference instance. This is done in order to track the origin of |
370 // all external references in the code so that they can be bound to the correct | 370 // all external references in the code so that they can be bound to the correct |
371 // addresses when deserializing a heap. | 371 // addresses when deserializing a heap. |
372 class ExternalReference BASE_EMBEDDED { | 372 class ExternalReference BASE_EMBEDDED { |
373 public: | 373 public: |
374 explicit ExternalReference(Builtins::CFunctionId id); | 374 explicit ExternalReference(Builtins::CFunctionId id); |
375 | 375 |
| 376 explicit ExternalReference(ApiFunction* ptr); |
| 377 |
376 explicit ExternalReference(Builtins::Name name); | 378 explicit ExternalReference(Builtins::Name name); |
377 | 379 |
378 explicit ExternalReference(Runtime::FunctionId id); | 380 explicit ExternalReference(Runtime::FunctionId id); |
379 | 381 |
380 explicit ExternalReference(Runtime::Function* f); | 382 explicit ExternalReference(Runtime::Function* f); |
381 | 383 |
382 explicit ExternalReference(const IC_Utility& ic_utility); | 384 explicit ExternalReference(const IC_Utility& ic_utility); |
383 | 385 |
384 #ifdef ENABLE_DEBUGGER_SUPPORT | 386 #ifdef ENABLE_DEBUGGER_SUPPORT |
385 explicit ExternalReference(const Debug_Address& debug_address); | 387 explicit ExternalReference(const Debug_Address& debug_address); |
(...skipping 29 matching lines...) Expand all Loading... |
415 static ExternalReference new_space_start(); | 417 static ExternalReference new_space_start(); |
416 static ExternalReference heap_always_allocate_scope_depth(); | 418 static ExternalReference heap_always_allocate_scope_depth(); |
417 | 419 |
418 // Used for fast allocation in generated code. | 420 // Used for fast allocation in generated code. |
419 static ExternalReference new_space_allocation_top_address(); | 421 static ExternalReference new_space_allocation_top_address(); |
420 static ExternalReference new_space_allocation_limit_address(); | 422 static ExternalReference new_space_allocation_limit_address(); |
421 | 423 |
422 static ExternalReference double_fp_operation(Token::Value operation); | 424 static ExternalReference double_fp_operation(Token::Value operation); |
423 static ExternalReference compare_doubles(); | 425 static ExternalReference compare_doubles(); |
424 | 426 |
| 427 static ExternalReference handle_scope_extensions_address(); |
| 428 static ExternalReference handle_scope_next_address(); |
| 429 static ExternalReference handle_scope_limit_address(); |
| 430 |
| 431 static ExternalReference scheduled_exception_address(); |
| 432 |
425 Address address() const {return reinterpret_cast<Address>(address_);} | 433 Address address() const {return reinterpret_cast<Address>(address_);} |
426 | 434 |
427 #ifdef ENABLE_DEBUGGER_SUPPORT | 435 #ifdef ENABLE_DEBUGGER_SUPPORT |
428 // Function Debug::Break() | 436 // Function Debug::Break() |
429 static ExternalReference debug_break(); | 437 static ExternalReference debug_break(); |
430 | 438 |
431 // Used to check if single stepping is enabled in generated code. | 439 // Used to check if single stepping is enabled in generated code. |
432 static ExternalReference debug_step_in_fp_address(); | 440 static ExternalReference debug_step_in_fp_address(); |
433 #endif | 441 #endif |
434 | 442 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 static inline bool is_uint5(int x) { return is_uintn(x, 5); } | 500 static inline bool is_uint5(int x) { return is_uintn(x, 5); } |
493 static inline bool is_uint6(int x) { return is_uintn(x, 6); } | 501 static inline bool is_uint6(int x) { return is_uintn(x, 6); } |
494 static inline bool is_uint8(int x) { return is_uintn(x, 8); } | 502 static inline bool is_uint8(int x) { return is_uintn(x, 8); } |
495 static inline bool is_uint12(int x) { return is_uintn(x, 12); } | 503 static inline bool is_uint12(int x) { return is_uintn(x, 12); } |
496 static inline bool is_uint16(int x) { return is_uintn(x, 16); } | 504 static inline bool is_uint16(int x) { return is_uintn(x, 16); } |
497 static inline bool is_uint24(int x) { return is_uintn(x, 24); } | 505 static inline bool is_uint24(int x) { return is_uintn(x, 24); } |
498 | 506 |
499 } } // namespace v8::internal | 507 } } // namespace v8::internal |
500 | 508 |
501 #endif // V8_ASSEMBLER_H_ | 509 #endif // V8_ASSEMBLER_H_ |
OLD | NEW |