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

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

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/arm/macro-assembler-arm.cc ('k') | src/mips/macro-assembler-mips.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 // Registers aliases 53 // Registers aliases
54 // cp is assumed to be a callee saved register. 54 // cp is assumed to be a callee saved register.
55 const Register roots = s6; // Roots array pointer. 55 const Register roots = s6; // Roots array pointer.
56 const Register cp = s7; // JavaScript context pointer 56 const Register cp = s7; // JavaScript context pointer
57 const Register fp = s8_fp; // Alias fp 57 const Register fp = s8_fp; // Alias fp
58 // Register used for condition evaluation. 58 // Register used for condition evaluation.
59 const Register condReg1 = s4; 59 const Register condReg1 = s4;
60 const Register condReg2 = s5; 60 const Register condReg2 = s5;
61 61
62 enum InvokeJSFlags {
63 CALL_JS,
64 JUMP_JS
65 };
66
67 62
68 // Flags used for the AllocateInNewSpace functions. 63 // Flags used for the AllocateInNewSpace functions.
69 enum AllocationFlags { 64 enum AllocationFlags {
70 // No special flags. 65 // No special flags.
71 NO_ALLOCATION_FLAGS = 0, 66 NO_ALLOCATION_FLAGS = 0,
72 // Return the pointer to the allocated already tagged as a heap object. 67 // Return the pointer to the allocated already tagged as a heap object.
73 TAG_OBJECT = 1 << 0, 68 TAG_OBJECT = 1 << 0,
74 // The content of the result register already contains the allocation top in 69 // The content of the result register already contains the allocation top in
75 // new space. 70 // new space.
76 RESULT_CONTAINS_TOP = 1 << 1, 71 RESULT_CONTAINS_TOP = 1 << 1,
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 // function). 763 // function).
769 void CallCFunction(ExternalReference function, int num_arguments); 764 void CallCFunction(ExternalReference function, int num_arguments);
770 void CallCFunction(Register function, Register scratch, int num_arguments); 765 void CallCFunction(Register function, Register scratch, int num_arguments);
771 766
772 // Jump to the builtin routine. 767 // Jump to the builtin routine.
773 void JumpToExternalReference(const ExternalReference& builtin); 768 void JumpToExternalReference(const ExternalReference& builtin);
774 769
775 // Invoke specified builtin JavaScript function. Adds an entry to 770 // Invoke specified builtin JavaScript function. Adds an entry to
776 // the unresolved list if the name does not resolve. 771 // the unresolved list if the name does not resolve.
777 void InvokeBuiltin(Builtins::JavaScript id, 772 void InvokeBuiltin(Builtins::JavaScript id,
778 InvokeJSFlags flags, 773 InvokeFlag flag,
779 PostCallGenerator* post_call_generator = NULL); 774 PostCallGenerator* post_call_generator = NULL);
780 775
781 // Store the code object for the given builtin in the target register and 776 // Store the code object for the given builtin in the target register and
782 // setup the function in a1. 777 // setup the function in a1.
783 void GetBuiltinEntry(Register target, Builtins::JavaScript id); 778 void GetBuiltinEntry(Register target, Builtins::JavaScript id);
784 779
785 // Store the function for the given builtin in the target register. 780 // Store the function for the given builtin in the target register.
786 void GetBuiltinFunction(Register target, Builtins::JavaScript id); 781 void GetBuiltinFunction(Register target, Builtins::JavaScript id);
787 782
788 struct Unresolved { 783 struct Unresolved {
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
1049 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1044 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1050 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1045 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1051 #else 1046 #else
1052 #define ACCESS_MASM(masm) masm-> 1047 #define ACCESS_MASM(masm) masm->
1053 #endif 1048 #endif
1054 1049
1055 } } // namespace v8::internal 1050 } } // namespace v8::internal
1056 1051
1057 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1052 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
1058 1053
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/mips/macro-assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698