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 | |
378 explicit ExternalReference(Builtins::Name name); | 376 explicit ExternalReference(Builtins::Name name); |
379 | 377 |
380 explicit ExternalReference(Runtime::FunctionId id); | 378 explicit ExternalReference(Runtime::FunctionId id); |
381 | 379 |
382 explicit ExternalReference(Runtime::Function* f); | 380 explicit ExternalReference(Runtime::Function* f); |
383 | 381 |
384 explicit ExternalReference(const IC_Utility& ic_utility); | 382 explicit ExternalReference(const IC_Utility& ic_utility); |
385 | 383 |
386 #ifdef ENABLE_DEBUGGER_SUPPORT | 384 #ifdef ENABLE_DEBUGGER_SUPPORT |
387 explicit ExternalReference(const Debug_Address& debug_address); | 385 explicit ExternalReference(const Debug_Address& debug_address); |
(...skipping 29 matching lines...) Expand all Loading... |
417 static ExternalReference new_space_start(); | 415 static ExternalReference new_space_start(); |
418 static ExternalReference heap_always_allocate_scope_depth(); | 416 static ExternalReference heap_always_allocate_scope_depth(); |
419 | 417 |
420 // Used for fast allocation in generated code. | 418 // Used for fast allocation in generated code. |
421 static ExternalReference new_space_allocation_top_address(); | 419 static ExternalReference new_space_allocation_top_address(); |
422 static ExternalReference new_space_allocation_limit_address(); | 420 static ExternalReference new_space_allocation_limit_address(); |
423 | 421 |
424 static ExternalReference double_fp_operation(Token::Value operation); | 422 static ExternalReference double_fp_operation(Token::Value operation); |
425 static ExternalReference compare_doubles(); | 423 static ExternalReference compare_doubles(); |
426 | 424 |
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 | |
433 Address address() const {return reinterpret_cast<Address>(address_);} | 425 Address address() const {return reinterpret_cast<Address>(address_);} |
434 | 426 |
435 #ifdef ENABLE_DEBUGGER_SUPPORT | 427 #ifdef ENABLE_DEBUGGER_SUPPORT |
436 // Function Debug::Break() | 428 // Function Debug::Break() |
437 static ExternalReference debug_break(); | 429 static ExternalReference debug_break(); |
438 | 430 |
439 // Used to check if single stepping is enabled in generated code. | 431 // Used to check if single stepping is enabled in generated code. |
440 static ExternalReference debug_step_in_fp_address(); | 432 static ExternalReference debug_step_in_fp_address(); |
441 #endif | 433 #endif |
442 | 434 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 static inline bool is_uint5(int x) { return is_uintn(x, 5); } | 492 static inline bool is_uint5(int x) { return is_uintn(x, 5); } |
501 static inline bool is_uint6(int x) { return is_uintn(x, 6); } | 493 static inline bool is_uint6(int x) { return is_uintn(x, 6); } |
502 static inline bool is_uint8(int x) { return is_uintn(x, 8); } | 494 static inline bool is_uint8(int x) { return is_uintn(x, 8); } |
503 static inline bool is_uint12(int x) { return is_uintn(x, 12); } | 495 static inline bool is_uint12(int x) { return is_uintn(x, 12); } |
504 static inline bool is_uint16(int x) { return is_uintn(x, 16); } | 496 static inline bool is_uint16(int x) { return is_uintn(x, 16); } |
505 static inline bool is_uint24(int x) { return is_uintn(x, 24); } | 497 static inline bool is_uint24(int x) { return is_uintn(x, 24); } |
506 | 498 |
507 } } // namespace v8::internal | 499 } } // namespace v8::internal |
508 | 500 |
509 #endif // V8_ASSEMBLER_H_ | 501 #endif // V8_ASSEMBLER_H_ |
OLD | NEW |