Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(500)

Side by Side Diff: src/arm/macro-assembler-arm.cc

Issue 11818021: Allocation Info Tracking, continued. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: A partial delta against Toon's previous review Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm/macro-assembler-arm.h ('k') | src/bootstrapper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 3058 matching lines...) Expand 10 before | Expand all | Expand 10 after
3069 ldr(function, 3069 ldr(function,
3070 MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); 3070 MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX)));
3071 // Load the native context from the global or builtins object. 3071 // Load the native context from the global or builtins object.
3072 ldr(function, FieldMemOperand(function, 3072 ldr(function, FieldMemOperand(function,
3073 GlobalObject::kNativeContextOffset)); 3073 GlobalObject::kNativeContextOffset));
3074 // Load the function from the native context. 3074 // Load the function from the native context.
3075 ldr(function, MemOperand(function, Context::SlotOffset(index))); 3075 ldr(function, MemOperand(function, Context::SlotOffset(index)));
3076 } 3076 }
3077 3077
3078 3078
3079 void MacroAssembler::LoadArrayFunction(Register function) {
3080 // Load the global or builtins object from the current context.
3081 ldr(function,
3082 MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX)));
3083 // Load the global context from the global or builtins object.
3084 ldr(function,
3085 FieldMemOperand(function, GlobalObject::kGlobalContextOffset));
3086 // Load the array function from the native context.
3087 ldr(function,
3088 MemOperand(function, Context::SlotOffset(Context::ARRAY_FUNCTION_INDEX)));
3089 }
3090
3091
3079 void MacroAssembler::LoadGlobalFunctionInitialMap(Register function, 3092 void MacroAssembler::LoadGlobalFunctionInitialMap(Register function,
3080 Register map, 3093 Register map,
3081 Register scratch) { 3094 Register scratch) {
3082 // Load the initial map. The global functions all have initial maps. 3095 // Load the initial map. The global functions all have initial maps.
3083 ldr(map, FieldMemOperand(function, JSFunction::kPrototypeOrInitialMapOffset)); 3096 ldr(map, FieldMemOperand(function, JSFunction::kPrototypeOrInitialMapOffset));
3084 if (emit_debug_code()) { 3097 if (emit_debug_code()) {
3085 Label ok, fail; 3098 Label ok, fail;
3086 CheckMap(map, scratch, Heap::kMetaMapRootIndex, &fail, DO_SMI_CHECK); 3099 CheckMap(map, scratch, Heap::kMetaMapRootIndex, &fail, DO_SMI_CHECK);
3087 b(&ok); 3100 b(&ok);
3088 bind(&fail); 3101 bind(&fail);
(...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after
3990 void CodePatcher::EmitCondition(Condition cond) { 4003 void CodePatcher::EmitCondition(Condition cond) {
3991 Instr instr = Assembler::instr_at(masm_.pc_); 4004 Instr instr = Assembler::instr_at(masm_.pc_);
3992 instr = (instr & ~kCondMask) | cond; 4005 instr = (instr & ~kCondMask) | cond;
3993 masm_.emit(instr); 4006 masm_.emit(instr);
3994 } 4007 }
3995 4008
3996 4009
3997 } } // namespace v8::internal 4010 } } // namespace v8::internal
3998 4011
3999 #endif // V8_TARGET_ARCH_ARM 4012 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.h ('k') | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698