Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: src/assembler.h

Issue 6580038: [Isolates] Merge from bleeding_edge, revisions 5934-6100. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/array.js ('k') | src/assembler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 namespace internal { 42 namespace internal {
43 43
44 44
45 // ----------------------------------------------------------------------------- 45 // -----------------------------------------------------------------------------
46 // Common double constants. 46 // Common double constants.
47 47
48 class DoubleConstant: public AllStatic { 48 class DoubleConstant: public AllStatic {
49 public: 49 public:
50 static const double min_int; 50 static const double min_int;
51 static const double one_half; 51 static const double one_half;
52 static const double negative_infinity;
52 }; 53 };
53 54
54 55
55 // ----------------------------------------------------------------------------- 56 // -----------------------------------------------------------------------------
56 // Labels represent pc locations; they are typically jump or call targets. 57 // Labels represent pc locations; they are typically jump or call targets.
57 // After declaration, a label can be freely used to denote known or (yet) 58 // After declaration, a label can be freely used to denote known or (yet)
58 // unknown pc location. Assembler::bind() is used to bind a label to the 59 // unknown pc location. Assembler::bind() is used to bind a label to the
59 // current pc. A label can be bound only once. 60 // current pc. A label can be bound only once.
60 61
61 class Label BASE_EMBEDDED { 62 class Label BASE_EMBEDDED {
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 // with a call to the debugger. 314 // with a call to the debugger.
314 INLINE(bool IsPatchedReturnSequence()); 315 INLINE(bool IsPatchedReturnSequence());
315 316
316 // Check whether this debug break slot has been patched with a call to the 317 // Check whether this debug break slot has been patched with a call to the
317 // debugger. 318 // debugger.
318 INLINE(bool IsPatchedDebugBreakSlotSequence()); 319 INLINE(bool IsPatchedDebugBreakSlotSequence());
319 320
320 #ifdef ENABLE_DISASSEMBLER 321 #ifdef ENABLE_DISASSEMBLER
321 // Printing 322 // Printing
322 static const char* RelocModeName(Mode rmode); 323 static const char* RelocModeName(Mode rmode);
323 void Print(); 324 void Print(FILE* out);
324 #endif // ENABLE_DISASSEMBLER 325 #endif // ENABLE_DISASSEMBLER
325 #ifdef DEBUG 326 #ifdef DEBUG
326 // Debugging 327 // Debugging
327 void Verify(); 328 void Verify();
328 #endif 329 #endif
329 330
330 static const int kCodeTargetMask = (1 << (LAST_CODE_ENUM + 1)) - 1; 331 static const int kCodeTargetMask = (1 << (LAST_CODE_ENUM + 1)) - 1;
331 static const int kPositionMask = 1 << POSITION | 1 << STATEMENT_POSITION; 332 static const int kPositionMask = 1 << POSITION | 1 << STATEMENT_POSITION;
332 static const int kDebugMask = kPositionMask | 1 << COMMENT; 333 static const int kDebugMask = kPositionMask | 1 << COMMENT;
333 static const int kApplyMask; // Modes affected by apply. Depends on arch. 334 static const int kApplyMask; // Modes affected by apply. Depends on arch.
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 static ExternalReference new_space_start(); 532 static ExternalReference new_space_start();
532 static ExternalReference new_space_mask(); 533 static ExternalReference new_space_mask();
533 static ExternalReference heap_always_allocate_scope_depth(); 534 static ExternalReference heap_always_allocate_scope_depth();
534 535
535 // Used for fast allocation in generated code. 536 // Used for fast allocation in generated code.
536 static ExternalReference new_space_allocation_top_address(); 537 static ExternalReference new_space_allocation_top_address();
537 static ExternalReference new_space_allocation_limit_address(); 538 static ExternalReference new_space_allocation_limit_address();
538 539
539 static ExternalReference double_fp_operation(Token::Value operation); 540 static ExternalReference double_fp_operation(Token::Value operation);
540 static ExternalReference compare_doubles(); 541 static ExternalReference compare_doubles();
542 static ExternalReference power_double_double_function();
543 static ExternalReference power_double_int_function();
541 544
542 static ExternalReference handle_scope_next_address(); 545 static ExternalReference handle_scope_next_address();
543 static ExternalReference handle_scope_limit_address(); 546 static ExternalReference handle_scope_limit_address();
544 static ExternalReference handle_scope_level_address(); 547 static ExternalReference handle_scope_level_address();
545 548
546 static ExternalReference scheduled_exception_address(); 549 static ExternalReference scheduled_exception_address();
547 550
548 // Static variables containing common double constants. 551 // Static variables containing common double constants.
549 static ExternalReference address_of_min_int(); 552 static ExternalReference address_of_min_int();
550 static ExternalReference address_of_one_half(); 553 static ExternalReference address_of_one_half();
554 static ExternalReference address_of_negative_infinity();
551 555
552 Address address() const {return reinterpret_cast<Address>(address_);} 556 Address address() const {return reinterpret_cast<Address>(address_);}
553 557
554 #ifdef ENABLE_DEBUGGER_SUPPORT 558 #ifdef ENABLE_DEBUGGER_SUPPORT
555 // Function Debug::Break() 559 // Function Debug::Break()
556 static ExternalReference debug_break(); 560 static ExternalReference debug_break();
557 561
558 // Used to check if single stepping is enabled in generated code. 562 // Used to check if single stepping is enabled in generated code.
559 static ExternalReference debug_step_in_fp_address(); 563 static ExternalReference debug_step_in_fp_address();
560 #endif 564 #endif
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 static inline bool is_uint28(int x) { return is_uintn(x, 28); } 709 static inline bool is_uint28(int x) { return is_uintn(x, 28); }
706 710
707 static inline int NumberOfBitsSet(uint32_t x) { 711 static inline int NumberOfBitsSet(uint32_t x) {
708 unsigned int num_bits_set; 712 unsigned int num_bits_set;
709 for (num_bits_set = 0; x; x >>= 1) { 713 for (num_bits_set = 0; x; x >>= 1) {
710 num_bits_set += x & 1; 714 num_bits_set += x & 1;
711 } 715 }
712 return num_bits_set; 716 return num_bits_set;
713 } 717 }
714 718
719 // Computes pow(x, y) with the special cases in the spec for Math.pow.
720 double power_double_int(double x, int y);
721 double power_double_double(double x, double y);
722
715 } } // namespace v8::internal 723 } } // namespace v8::internal
716 724
717 #endif // V8_ASSEMBLER_H_ 725 #endif // V8_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/array.js ('k') | src/assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698