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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 | 213 |
214 void AddDeferred(DeferredCode* code) { deferred_.Add(code); } | 214 void AddDeferred(DeferredCode* code) { deferred_.Add(code); } |
215 | 215 |
216 static const int kUnknownIntValue = -1; | 216 static const int kUnknownIntValue = -1; |
217 | 217 |
218 // If the name is an inline runtime function call return the number of | 218 // If the name is an inline runtime function call return the number of |
219 // expected arguments. Otherwise return -1. | 219 // expected arguments. Otherwise return -1. |
220 static int InlineRuntimeCallArgumentsCount(Handle<String> name); | 220 static int InlineRuntimeCallArgumentsCount(Handle<String> name); |
221 | 221 |
222 // Constants related to patching of inlined load/store. | 222 // Constants related to patching of inlined load/store. |
223 static const int kInlinedKeyedLoadInstructionsAfterPatchSize = 19; | 223 static const int kInlinedKeyedLoadInstructionsAfterPatch = 19; |
| 224 static const int kInlinedKeyedStoreInstructionsAfterPatch = 5; |
224 | 225 |
225 private: | 226 private: |
226 // Construction/Destruction | 227 // Construction/Destruction |
227 explicit CodeGenerator(MacroAssembler* masm); | 228 explicit CodeGenerator(MacroAssembler* masm); |
228 | 229 |
229 // Accessors | 230 // Accessors |
230 inline bool is_eval(); | 231 inline bool is_eval(); |
231 inline Scope* scope(); | 232 inline Scope* scope(); |
232 | 233 |
233 // Generating deferred code. | 234 // Generating deferred code. |
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
952 return ObjectBits::encode(object_.code()) | | 953 return ObjectBits::encode(object_.code()) | |
953 OffsetBits::encode(offset_.code()) | | 954 OffsetBits::encode(offset_.code()) | |
954 ScratchBits::encode(scratch_.code()); | 955 ScratchBits::encode(scratch_.code()); |
955 } | 956 } |
956 }; | 957 }; |
957 | 958 |
958 | 959 |
959 } } // namespace v8::internal | 960 } } // namespace v8::internal |
960 | 961 |
961 #endif // V8_ARM_CODEGEN_ARM_H_ | 962 #endif // V8_ARM_CODEGEN_ARM_H_ |
OLD | NEW |