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

Side by Side Diff: src/assembler.cc

Issue 2840018: [Isolates] Moved more compilation-related globals (builtins, runtime, &c.)... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: rebase Created 10 years, 5 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/assembler.h ('k') | src/ast.h » ('j') | src/runtime.h » ('J')
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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 534
535 ExternalReference::ExternalReference(Builtins::CFunctionId id) 535 ExternalReference::ExternalReference(Builtins::CFunctionId id)
536 : address_(Redirect(Builtins::c_function_address(id))) {} 536 : address_(Redirect(Builtins::c_function_address(id))) {}
537 537
538 538
539 ExternalReference::ExternalReference(ApiFunction* fun) 539 ExternalReference::ExternalReference(ApiFunction* fun)
540 : address_(Redirect(fun->address())) {} 540 : address_(Redirect(fun->address())) {}
541 541
542 542
543 ExternalReference::ExternalReference(Builtins::Name name) 543 ExternalReference::ExternalReference(Builtins::Name name)
544 : address_(Builtins::builtin_address(name)) {} 544 : address_(Isolate::Current()->builtins()->builtin_address(name)) {}
545 545
546 546
547 ExternalReference::ExternalReference(Runtime::FunctionId id) 547 ExternalReference::ExternalReference(Runtime::FunctionId id)
548 : address_(Redirect(Runtime::FunctionForId(id)->entry)) {} 548 : address_(Redirect(Runtime::FunctionForId(id)->entry)) {}
549 549
550 550
551 ExternalReference::ExternalReference(Runtime::Function* f) 551 ExternalReference::ExternalReference(const Runtime::Function* f)
552 : address_(Redirect(f->entry)) {} 552 : address_(Redirect(f->entry)) {}
553 553
554 554
555 ExternalReference::ExternalReference(const IC_Utility& ic_utility) 555 ExternalReference::ExternalReference(const IC_Utility& ic_utility)
556 : address_(Redirect(ic_utility.address())) {} 556 : address_(Redirect(ic_utility.address())) {}
557 557
558 #ifdef ENABLE_DEBUGGER_SUPPORT 558 #ifdef ENABLE_DEBUGGER_SUPPORT
559 ExternalReference::ExternalReference(const Debug_Address& debug_address) 559 ExternalReference::ExternalReference(const Debug_Address& debug_address)
560 : address_(debug_address.address()) {} 560 : address_(debug_address.address()) {}
561 #endif 561 #endif
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 return ExternalReference(Redirect(FUNCTION_ADDR(function), true)); 783 return ExternalReference(Redirect(FUNCTION_ADDR(function), true));
784 } 784 }
785 785
786 786
787 ExternalReference ExternalReference::compare_doubles() { 787 ExternalReference ExternalReference::compare_doubles() {
788 return ExternalReference(Redirect(FUNCTION_ADDR(native_compare_doubles), 788 return ExternalReference(Redirect(FUNCTION_ADDR(native_compare_doubles),
789 false)); 789 false));
790 } 790 }
791 791
792 792
793 ExternalReferenceRedirector* ExternalReference::redirector_ = NULL;
794
795
796 #ifdef ENABLE_DEBUGGER_SUPPORT 793 #ifdef ENABLE_DEBUGGER_SUPPORT
797 ExternalReference ExternalReference::debug_break() { 794 ExternalReference ExternalReference::debug_break() {
798 return ExternalReference(Redirect(FUNCTION_ADDR(Debug::Break))); 795 return ExternalReference(Redirect(FUNCTION_ADDR(Debug::Break)));
799 } 796 }
800 797
801 798
802 ExternalReference ExternalReference::debug_step_in_fp_address() { 799 ExternalReference ExternalReference::debug_step_in_fp_address() {
803 return ExternalReference(Debug::step_in_fp_addr()); 800 return ExternalReference(Debug::step_in_fp_addr());
804 } 801 }
805 #endif 802 #endif
806 803
807 } } // namespace v8::internal 804 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/ast.h » ('j') | src/runtime.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698