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.cc

Issue 335027: Reverted 3130-3131 since they don't work on mac. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 1 month 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/code-stubs.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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 #endif // DEBUG 515 #endif // DEBUG
516 516
517 517
518 // ----------------------------------------------------------------------------- 518 // -----------------------------------------------------------------------------
519 // Implementation of ExternalReference 519 // Implementation of ExternalReference
520 520
521 ExternalReference::ExternalReference(Builtins::CFunctionId id) 521 ExternalReference::ExternalReference(Builtins::CFunctionId id)
522 : address_(Redirect(Builtins::c_function_address(id))) {} 522 : address_(Redirect(Builtins::c_function_address(id))) {}
523 523
524 524
525 ExternalReference::ExternalReference(ApiFunction* fun)
526 : address_(Redirect(fun->address())) {}
527
528
529 ExternalReference::ExternalReference(Builtins::Name name) 525 ExternalReference::ExternalReference(Builtins::Name name)
530 : address_(Builtins::builtin_address(name)) {} 526 : address_(Builtins::builtin_address(name)) {}
531 527
532 528
533 ExternalReference::ExternalReference(Runtime::FunctionId id) 529 ExternalReference::ExternalReference(Runtime::FunctionId id)
534 : address_(Redirect(Runtime::FunctionForId(id)->entry)) {} 530 : address_(Redirect(Runtime::FunctionForId(id)->entry)) {}
535 531
536 532
537 ExternalReference::ExternalReference(Runtime::Function* f) 533 ExternalReference::ExternalReference(Runtime::Function* f)
538 : address_(Redirect(f->entry)) {} 534 : address_(Redirect(f->entry)) {}
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 601
606 ExternalReference ExternalReference::heap_always_allocate_scope_depth() { 602 ExternalReference ExternalReference::heap_always_allocate_scope_depth() {
607 return ExternalReference(Heap::always_allocate_scope_depth_address()); 603 return ExternalReference(Heap::always_allocate_scope_depth_address());
608 } 604 }
609 605
610 606
611 ExternalReference ExternalReference::new_space_allocation_limit_address() { 607 ExternalReference ExternalReference::new_space_allocation_limit_address() {
612 return ExternalReference(Heap::NewSpaceAllocationLimitAddress()); 608 return ExternalReference(Heap::NewSpaceAllocationLimitAddress());
613 } 609 }
614 610
615
616 ExternalReference ExternalReference::handle_scope_extensions_address() {
617 return ExternalReference(HandleScope::current_extensions_address());
618 }
619
620
621 ExternalReference ExternalReference::handle_scope_next_address() {
622 return ExternalReference(HandleScope::current_next_address());
623 }
624
625
626 ExternalReference ExternalReference::handle_scope_limit_address() {
627 return ExternalReference(HandleScope::current_limit_address());
628 }
629
630
631 ExternalReference ExternalReference::scheduled_exception_address() {
632 return ExternalReference(Top::scheduled_exception_address());
633 }
634
635
636 #ifdef V8_NATIVE_REGEXP 611 #ifdef V8_NATIVE_REGEXP
637 612
638 ExternalReference ExternalReference::re_check_stack_guard_state() { 613 ExternalReference ExternalReference::re_check_stack_guard_state() {
639 Address function; 614 Address function;
640 #ifdef V8_TARGET_ARCH_X64 615 #ifdef V8_TARGET_ARCH_X64
641 function = FUNCTION_ADDR(RegExpMacroAssemblerX64::CheckStackGuardState); 616 function = FUNCTION_ADDR(RegExpMacroAssemblerX64::CheckStackGuardState);
642 #elif V8_TARGET_ARCH_IA32 617 #elif V8_TARGET_ARCH_IA32
643 function = FUNCTION_ADDR(RegExpMacroAssemblerIA32::CheckStackGuardState); 618 function = FUNCTION_ADDR(RegExpMacroAssemblerIA32::CheckStackGuardState);
644 #elif V8_TARGET_ARCH_ARM 619 #elif V8_TARGET_ARCH_ARM
645 function = FUNCTION_ADDR(RegExpMacroAssemblerARM::CheckStackGuardState); 620 function = FUNCTION_ADDR(RegExpMacroAssemblerARM::CheckStackGuardState);
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 return ExternalReference(Redirect(FUNCTION_ADDR(Debug::Break))); 710 return ExternalReference(Redirect(FUNCTION_ADDR(Debug::Break)));
736 } 711 }
737 712
738 713
739 ExternalReference ExternalReference::debug_step_in_fp_address() { 714 ExternalReference ExternalReference::debug_step_in_fp_address() {
740 return ExternalReference(Debug::step_in_fp_addr()); 715 return ExternalReference(Debug::step_in_fp_addr());
741 } 716 }
742 #endif 717 #endif
743 718
744 } } // namespace v8::internal 719 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698