| 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 | 269 |
| 270 void AddDeferred(DeferredCode* code) { deferred_.Add(code); } | 270 void AddDeferred(DeferredCode* code) { deferred_.Add(code); } |
| 271 | 271 |
| 272 static const int kUnknownIntValue = -1; | 272 static const int kUnknownIntValue = -1; |
| 273 | 273 |
| 274 // If the name is an inline runtime function call return the number of | 274 // If the name is an inline runtime function call return the number of |
| 275 // expected arguments. Otherwise return -1. | 275 // expected arguments. Otherwise return -1. |
| 276 static int InlineRuntimeCallArgumentsCount(Handle<String> name); | 276 static int InlineRuntimeCallArgumentsCount(Handle<String> name); |
| 277 | 277 |
| 278 // Constants related to patching of inlined load/store. | 278 // Constants related to patching of inlined load/store. |
| 279 static const int kInlinedKeyedLoadInstructionsAfterPatch = 17; | 279 static int GetInlinedKeyedLoadInstructionsAfterPatch() { |
| 280 return FLAG_debug_code ? 27 : 13; |
| 281 } |
| 280 static const int kInlinedKeyedStoreInstructionsAfterPatch = 5; | 282 static const int kInlinedKeyedStoreInstructionsAfterPatch = 5; |
| 281 | 283 |
| 282 private: | 284 private: |
| 283 // Construction/Destruction | 285 // Construction/Destruction |
| 284 explicit CodeGenerator(MacroAssembler* masm); | 286 explicit CodeGenerator(MacroAssembler* masm); |
| 285 | 287 |
| 286 // Accessors | 288 // Accessors |
| 287 inline bool is_eval(); | 289 inline bool is_eval(); |
| 288 inline Scope* scope(); | 290 inline Scope* scope(); |
| 289 | 291 |
| (...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 986 return ObjectBits::encode(object_.code()) | | 988 return ObjectBits::encode(object_.code()) | |
| 987 OffsetBits::encode(offset_.code()) | | 989 OffsetBits::encode(offset_.code()) | |
| 988 ScratchBits::encode(scratch_.code()); | 990 ScratchBits::encode(scratch_.code()); |
| 989 } | 991 } |
| 990 }; | 992 }; |
| 991 | 993 |
| 992 | 994 |
| 993 } } // namespace v8::internal | 995 } } // namespace v8::internal |
| 994 | 996 |
| 995 #endif // V8_ARM_CODEGEN_ARM_H_ | 997 #endif // V8_ARM_CODEGEN_ARM_H_ |
| OLD | NEW |