OLD | NEW |
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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 void set_state(CodeGenState* state) { state_ = state; } | 210 void set_state(CodeGenState* state) { state_ = state; } |
211 | 211 |
212 void AddDeferred(DeferredCode* code) { deferred_.Add(code); } | 212 void AddDeferred(DeferredCode* code) { deferred_.Add(code); } |
213 | 213 |
214 static const int kUnknownIntValue = -1; | 214 static const int kUnknownIntValue = -1; |
215 | 215 |
216 // If the name is an inline runtime function call return the number of | 216 // If the name is an inline runtime function call return the number of |
217 // expected arguments. Otherwise return -1. | 217 // expected arguments. Otherwise return -1. |
218 static int InlineRuntimeCallArgumentsCount(Handle<String> name); | 218 static int InlineRuntimeCallArgumentsCount(Handle<String> name); |
219 | 219 |
220 // Constants related to patching of inlined lokad/store. | 220 // Constants related to patching of inlined load/store. |
221 static const int kInlinedKeyedLoadInstructionsAfterPatchSize = 19; | 221 static const int kInlinedKeyedLoadInstructionsAfterPatchSize = 19; |
222 | 222 |
223 private: | 223 private: |
224 // Construction/Destruction | 224 // Construction/Destruction |
225 explicit CodeGenerator(MacroAssembler* masm); | 225 explicit CodeGenerator(MacroAssembler* masm); |
226 | 226 |
227 // Accessors | 227 // Accessors |
228 inline bool is_eval(); | 228 inline bool is_eval(); |
229 inline Scope* scope(); | 229 inline Scope* scope(); |
230 | 230 |
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
940 return ObjectBits::encode(object_.code()) | | 940 return ObjectBits::encode(object_.code()) | |
941 OffsetBits::encode(offset_.code()) | | 941 OffsetBits::encode(offset_.code()) | |
942 ScratchBits::encode(scratch_.code()); | 942 ScratchBits::encode(scratch_.code()); |
943 } | 943 } |
944 }; | 944 }; |
945 | 945 |
946 | 946 |
947 } } // namespace v8::internal | 947 } } // namespace v8::internal |
948 | 948 |
949 #endif // V8_ARM_CODEGEN_ARM_H_ | 949 #endif // V8_ARM_CODEGEN_ARM_H_ |
OLD | NEW |