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 20 matching lines...) Expand all Loading... |
31 // The original source code covered by the above license above has been | 31 // The original source code covered by the above license above has been |
32 // modified significantly by Google Inc. | 32 // modified significantly by Google Inc. |
33 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 33 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
34 | 34 |
35 #ifndef V8_ASSEMBLER_H_ | 35 #ifndef V8_ASSEMBLER_H_ |
36 #define V8_ASSEMBLER_H_ | 36 #define V8_ASSEMBLER_H_ |
37 | 37 |
38 #include "runtime.h" | 38 #include "runtime.h" |
39 #include "top.h" | 39 #include "top.h" |
40 #include "zone-inl.h" | 40 #include "zone-inl.h" |
| 41 #include "token.h" |
41 | 42 |
42 namespace v8 { namespace internal { | 43 namespace v8 { namespace internal { |
43 | 44 |
44 | 45 |
45 // ----------------------------------------------------------------------------- | 46 // ----------------------------------------------------------------------------- |
46 // Labels represent pc locations; they are typically jump or call targets. | 47 // Labels represent pc locations; they are typically jump or call targets. |
47 // After declaration, a label can be freely used to denote known or (yet) | 48 // After declaration, a label can be freely used to denote known or (yet) |
48 // unknown pc location. Assembler::bind() is used to bind a label to the | 49 // unknown pc location. Assembler::bind() is used to bind a label to the |
49 // current pc. A label can be bound only once. | 50 // current pc. A label can be bound only once. |
50 | 51 |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 static ExternalReference new_space_start(); | 411 static ExternalReference new_space_start(); |
411 static ExternalReference heap_always_allocate_scope_depth(); | 412 static ExternalReference heap_always_allocate_scope_depth(); |
412 | 413 |
413 // Used for fast allocation in generated code. | 414 // Used for fast allocation in generated code. |
414 static ExternalReference new_space_allocation_top_address(); | 415 static ExternalReference new_space_allocation_top_address(); |
415 static ExternalReference new_space_allocation_limit_address(); | 416 static ExternalReference new_space_allocation_limit_address(); |
416 | 417 |
417 // Used to check if single stepping is enabled in generated code. | 418 // Used to check if single stepping is enabled in generated code. |
418 static ExternalReference debug_step_in_fp_address(); | 419 static ExternalReference debug_step_in_fp_address(); |
419 | 420 |
| 421 static ExternalReference double_fp_operation(Token::Value operation); |
| 422 |
420 Address address() const {return address_;} | 423 Address address() const {return address_;} |
421 | 424 |
422 private: | 425 private: |
423 explicit ExternalReference(void* address) | 426 explicit ExternalReference(void* address) |
424 : address_(reinterpret_cast<Address>(address)) {} | 427 : address_(reinterpret_cast<Address>(address)) {} |
425 | 428 |
426 Address address_; | 429 Address address_; |
427 }; | 430 }; |
428 | 431 |
429 | 432 |
(...skipping 17 matching lines...) Expand all Loading... |
447 static inline bool is_uint4(int x) { return is_uintn(x, 4); } | 450 static inline bool is_uint4(int x) { return is_uintn(x, 4); } |
448 static inline bool is_uint5(int x) { return is_uintn(x, 5); } | 451 static inline bool is_uint5(int x) { return is_uintn(x, 5); } |
449 static inline bool is_uint8(int x) { return is_uintn(x, 8); } | 452 static inline bool is_uint8(int x) { return is_uintn(x, 8); } |
450 static inline bool is_uint12(int x) { return is_uintn(x, 12); } | 453 static inline bool is_uint12(int x) { return is_uintn(x, 12); } |
451 static inline bool is_uint16(int x) { return is_uintn(x, 16); } | 454 static inline bool is_uint16(int x) { return is_uintn(x, 16); } |
452 static inline bool is_uint24(int x) { return is_uintn(x, 24); } | 455 static inline bool is_uint24(int x) { return is_uintn(x, 24); } |
453 | 456 |
454 } } // namespace v8::internal | 457 } } // namespace v8::internal |
455 | 458 |
456 #endif // V8_ASSEMBLER_H_ | 459 #endif // V8_ASSEMBLER_H_ |
OLD | NEW |