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

Side by Side Diff: src/assembler.h

Issue 6960009: Version 3.3.5 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 9 years, 7 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/ast.h » ('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 17 matching lines...) Expand all
28 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 28 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 30
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 2011 the V8 project authors. All rights reserved. 33 // Copyright 2011 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 "allocation.h"
38 #include "gdb-jit.h" 39 #include "gdb-jit.h"
39 #include "runtime.h" 40 #include "runtime.h"
40 #include "token.h" 41 #include "token.h"
41 42
42 namespace v8 { 43 namespace v8 {
43 namespace internal { 44 namespace internal {
44 45
45 const unsigned kNoASTId = -1; 46 const unsigned kNoASTId = -1;
46 // ----------------------------------------------------------------------------- 47 // -----------------------------------------------------------------------------
47 // Platform independent assembler base class. 48 // Platform independent assembler base class.
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 // Function NativeRegExpMacroAssembler::GrowStack() 667 // Function NativeRegExpMacroAssembler::GrowStack()
667 static ExternalReference re_grow_stack(Isolate* isolate); 668 static ExternalReference re_grow_stack(Isolate* isolate);
668 669
669 // byte NativeRegExpMacroAssembler::word_character_bitmap 670 // byte NativeRegExpMacroAssembler::word_character_bitmap
670 static ExternalReference re_word_character_map(); 671 static ExternalReference re_word_character_map();
671 672
672 #endif 673 #endif
673 674
674 // This lets you register a function that rewrites all external references. 675 // This lets you register a function that rewrites all external references.
675 // Used by the ARM simulator to catch calls to external references. 676 // Used by the ARM simulator to catch calls to external references.
676 static void set_redirector(ExternalReferenceRedirector* redirector) { 677 static void set_redirector(Isolate* isolate,
678 ExternalReferenceRedirector* redirector) {
677 // We can't stack them. 679 // We can't stack them.
678 ASSERT(Isolate::Current()->external_reference_redirector() == NULL); 680 ASSERT(isolate->external_reference_redirector() == NULL);
679 Isolate::Current()->set_external_reference_redirector( 681 isolate->set_external_reference_redirector(
680 reinterpret_cast<ExternalReferenceRedirectorPointer*>(redirector)); 682 reinterpret_cast<ExternalReferenceRedirectorPointer*>(redirector));
681 } 683 }
682 684
683 private: 685 private:
684 explicit ExternalReference(void* address) 686 explicit ExternalReference(void* address)
685 : address_(address) {} 687 : address_(address) {}
686 688
687 static void* Redirect(Isolate* isolate, 689 static void* Redirect(Isolate* isolate,
688 void* address, 690 void* address,
689 Type type = ExternalReference::BUILTIN_CALL) { 691 Type type = ExternalReference::BUILTIN_CALL) {
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 public: 863 public:
862 NullCallWrapper() { } 864 NullCallWrapper() { }
863 virtual ~NullCallWrapper() { } 865 virtual ~NullCallWrapper() { }
864 virtual void BeforeCall(int call_size) const { } 866 virtual void BeforeCall(int call_size) const { }
865 virtual void AfterCall() const { } 867 virtual void AfterCall() const { }
866 }; 868 };
867 869
868 } } // namespace v8::internal 870 } } // namespace v8::internal
869 871
870 #endif // V8_ASSEMBLER_H_ 872 #endif // V8_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/array.js ('k') | src/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698