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

Side by Side Diff: src/mips/macro-assembler-mips.cc

Issue 6880321: Removed InvokeJSFlags enum, we already have InvokeFlag for the same purpose. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
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/mips/macro-assembler-mips.h ('k') | src/mips/virtual-frame-mips.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2623 matching lines...) Expand 10 before | Expand all | Expand 10 after
2634 2634
2635 2635
2636 void MacroAssembler::JumpToExternalReference(const ExternalReference& builtin) { 2636 void MacroAssembler::JumpToExternalReference(const ExternalReference& builtin) {
2637 li(a1, Operand(builtin)); 2637 li(a1, Operand(builtin));
2638 CEntryStub stub(1); 2638 CEntryStub stub(1);
2639 Jump(stub.GetCode(), RelocInfo::CODE_TARGET); 2639 Jump(stub.GetCode(), RelocInfo::CODE_TARGET);
2640 } 2640 }
2641 2641
2642 2642
2643 void MacroAssembler::InvokeBuiltin(Builtins::JavaScript id, 2643 void MacroAssembler::InvokeBuiltin(Builtins::JavaScript id,
2644 InvokeJSFlags flags, 2644 InvokeFlag flag,
2645 PostCallGenerator* post_call_generator) { 2645 PostCallGenerator* post_call_generator) {
2646 GetBuiltinEntry(t9, id); 2646 GetBuiltinEntry(t9, id);
2647 if (flags == CALL_JS) { 2647 if (flag == CALL_FUNCTION) {
2648 Call(t9); 2648 Call(t9);
2649 if (post_call_generator != NULL) post_call_generator->Generate(); 2649 if (post_call_generator != NULL) post_call_generator->Generate();
2650 } else { 2650 } else {
2651 ASSERT(flags == JUMP_JS); 2651 ASSERT(flag == JUMP_FUNCTION);
2652 Jump(t9); 2652 Jump(t9);
2653 } 2653 }
2654 } 2654 }
2655 2655
2656 2656
2657 void MacroAssembler::GetBuiltinFunction(Register target, 2657 void MacroAssembler::GetBuiltinFunction(Register target,
2658 Builtins::JavaScript id) { 2658 Builtins::JavaScript id) {
2659 // Load the builtins object into target register. 2659 // Load the builtins object into target register.
2660 lw(target, MemOperand(cp, Context::SlotOffset(Context::GLOBAL_INDEX))); 2660 lw(target, MemOperand(cp, Context::SlotOffset(Context::GLOBAL_INDEX)));
2661 lw(target, FieldMemOperand(target, GlobalObject::kBuiltinsOffset)); 2661 lw(target, FieldMemOperand(target, GlobalObject::kBuiltinsOffset));
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
3318 masm()->emit(reinterpret_cast<Instr>(addr)); 3318 masm()->emit(reinterpret_cast<Instr>(addr));
3319 } 3319 }
3320 3320
3321 3321
3322 #endif // ENABLE_DEBUGGER_SUPPORT 3322 #endif // ENABLE_DEBUGGER_SUPPORT
3323 3323
3324 3324
3325 } } // namespace v8::internal 3325 } } // namespace v8::internal
3326 3326
3327 #endif // V8_TARGET_ARCH_MIPS 3327 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/macro-assembler-mips.h ('k') | src/mips/virtual-frame-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698