OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 4182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4193 Register FullCodeGenerator::context_register() { | 4193 Register FullCodeGenerator::context_register() { |
4194 return cp; | 4194 return cp; |
4195 } | 4195 } |
4196 | 4196 |
4197 | 4197 |
4198 void FullCodeGenerator::EmitCallIC(Handle<Code> ic, | 4198 void FullCodeGenerator::EmitCallIC(Handle<Code> ic, |
4199 RelocInfo::Mode mode, | 4199 RelocInfo::Mode mode, |
4200 unsigned ast_id) { | 4200 unsigned ast_id) { |
4201 ASSERT(mode == RelocInfo::CODE_TARGET || | 4201 ASSERT(mode == RelocInfo::CODE_TARGET || |
4202 mode == RelocInfo::CODE_TARGET_CONTEXT); | 4202 mode == RelocInfo::CODE_TARGET_CONTEXT); |
4203 if (ast_id == kNoASTId || mode == RelocInfo::CODE_TARGET_CONTEXT) { | 4203 __ Call(ic, mode, ast_id); |
4204 __ Call(ic, mode); | |
4205 } else { | |
4206 ASSERT(mode == RelocInfo::CODE_TARGET); | |
4207 __ CallWithAstId(ic, RelocInfo::CODE_TARGET_WITH_ID, ast_id); | |
4208 } | |
4209 } | 4204 } |
4210 | 4205 |
4211 | 4206 |
4212 void FullCodeGenerator::StoreToFrameField(int frame_offset, Register value) { | 4207 void FullCodeGenerator::StoreToFrameField(int frame_offset, Register value) { |
4213 ASSERT_EQ(POINTER_SIZE_ALIGN(frame_offset), frame_offset); | 4208 ASSERT_EQ(POINTER_SIZE_ALIGN(frame_offset), frame_offset); |
4214 __ str(value, MemOperand(fp, frame_offset)); | 4209 __ str(value, MemOperand(fp, frame_offset)); |
4215 } | 4210 } |
4216 | 4211 |
4217 | 4212 |
4218 void FullCodeGenerator::LoadContextField(Register dst, int context_index) { | 4213 void FullCodeGenerator::LoadContextField(Register dst, int context_index) { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4266 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. | 4261 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. |
4267 __ add(pc, r1, Operand(masm_->CodeObject())); | 4262 __ add(pc, r1, Operand(masm_->CodeObject())); |
4268 } | 4263 } |
4269 | 4264 |
4270 | 4265 |
4271 #undef __ | 4266 #undef __ |
4272 | 4267 |
4273 } } // namespace v8::internal | 4268 } } // namespace v8::internal |
4274 | 4269 |
4275 #endif // V8_TARGET_ARCH_ARM | 4270 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |