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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 void AddDeferred(DeferredCode* code) { deferred_.Add(code); } | 271 void AddDeferred(DeferredCode* code) { deferred_.Add(code); } |
272 | 272 |
273 static const int kUnknownIntValue = -1; | 273 static const int kUnknownIntValue = -1; |
274 | 274 |
275 // If the name is an inline runtime function call return the number of | 275 // If the name is an inline runtime function call return the number of |
276 // expected arguments. Otherwise return -1. | 276 // expected arguments. Otherwise return -1. |
277 static int InlineRuntimeCallArgumentsCount(Handle<String> name); | 277 static int InlineRuntimeCallArgumentsCount(Handle<String> name); |
278 | 278 |
279 // Constants related to patching of inlined load/store. | 279 // Constants related to patching of inlined load/store. |
280 static int GetInlinedKeyedLoadInstructionsAfterPatch() { | 280 static int GetInlinedKeyedLoadInstructionsAfterPatch() { |
281 return FLAG_debug_code ? 27 : 13; | 281 return FLAG_debug_code ? 32 : 13; |
282 } | 282 } |
283 static const int kInlinedKeyedStoreInstructionsAfterPatch = 5; | 283 static const int kInlinedKeyedStoreInstructionsAfterPatch = 5; |
284 static int GetInlinedNamedStoreInstructionsAfterPatch() { | 284 static int GetInlinedNamedStoreInstructionsAfterPatch() { |
285 ASSERT(inlined_write_barrier_size_ != -1); | 285 ASSERT(inlined_write_barrier_size_ != -1); |
286 return inlined_write_barrier_size_ + 4; | 286 return inlined_write_barrier_size_ + 4; |
287 } | 287 } |
288 | 288 |
289 static MemOperand ContextOperand(Register context, int index) { | 289 static MemOperand ContextOperand(Register context, int index) { |
290 return MemOperand(context, Context::SlotOffset(index)); | 290 return MemOperand(context, Context::SlotOffset(index)); |
291 } | 291 } |
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1097 return ObjectBits::encode(object_.code()) | | 1097 return ObjectBits::encode(object_.code()) | |
1098 OffsetBits::encode(offset_.code()) | | 1098 OffsetBits::encode(offset_.code()) | |
1099 ScratchBits::encode(scratch_.code()); | 1099 ScratchBits::encode(scratch_.code()); |
1100 } | 1100 } |
1101 }; | 1101 }; |
1102 | 1102 |
1103 | 1103 |
1104 } } // namespace v8::internal | 1104 } } // namespace v8::internal |
1105 | 1105 |
1106 #endif // V8_ARM_CODEGEN_ARM_H_ | 1106 #endif // V8_ARM_CODEGEN_ARM_H_ |
OLD | NEW |