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

Side by Side Diff: src/arm/stub-cache-arm.cc

Issue 12317141: Added Isolate parameter to CodeStub::GetCode(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed whitespace. Rebased. 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.cc ('k') | src/code-stubs.h » ('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 3069 matching lines...) Expand 10 before | Expand all | Expand 10 after
3080 // ----------- S t a t e ------------- 3080 // ----------- S t a t e -------------
3081 // -- lr : return address 3081 // -- lr : return address
3082 // -- r0 : key 3082 // -- r0 : key
3083 // -- r1 : receiver 3083 // -- r1 : receiver
3084 // ----------------------------------- 3084 // -----------------------------------
3085 ElementsKind elements_kind = receiver_map->elements_kind(); 3085 ElementsKind elements_kind = receiver_map->elements_kind();
3086 if (receiver_map->has_fast_elements() || 3086 if (receiver_map->has_fast_elements() ||
3087 receiver_map->has_external_array_elements()) { 3087 receiver_map->has_external_array_elements()) {
3088 Handle<Code> stub = KeyedLoadFastElementStub( 3088 Handle<Code> stub = KeyedLoadFastElementStub(
3089 receiver_map->instance_type() == JS_ARRAY_TYPE, 3089 receiver_map->instance_type() == JS_ARRAY_TYPE,
3090 elements_kind).GetCode(); 3090 elements_kind).GetCode(isolate());
3091 __ DispatchMap(r1, r2, receiver_map, stub, DO_SMI_CHECK); 3091 __ DispatchMap(r1, r2, receiver_map, stub, DO_SMI_CHECK);
3092 } else { 3092 } else {
3093 Handle<Code> stub = 3093 Handle<Code> stub =
3094 KeyedLoadDictionaryElementStub().GetCode(); 3094 KeyedLoadDictionaryElementStub().GetCode(isolate());
3095 __ DispatchMap(r1, r2, receiver_map, stub, DO_SMI_CHECK); 3095 __ DispatchMap(r1, r2, receiver_map, stub, DO_SMI_CHECK);
3096 } 3096 }
3097 3097
3098 Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Miss(); 3098 Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Miss();
3099 __ Jump(ic, RelocInfo::CODE_TARGET); 3099 __ Jump(ic, RelocInfo::CODE_TARGET);
3100 3100
3101 // Return the generated code. 3101 // Return the generated code.
3102 return GetCode(Code::NORMAL, factory()->empty_string()); 3102 return GetCode(Code::NORMAL, factory()->empty_string());
3103 } 3103 }
3104 3104
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
3177 // ----------- S t a t e ------------- 3177 // ----------- S t a t e -------------
3178 // -- r0 : value 3178 // -- r0 : value
3179 // -- r1 : key 3179 // -- r1 : key
3180 // -- r2 : receiver 3180 // -- r2 : receiver
3181 // -- lr : return address 3181 // -- lr : return address
3182 // -- r3 : scratch 3182 // -- r3 : scratch
3183 // ----------------------------------- 3183 // -----------------------------------
3184 ElementsKind elements_kind = receiver_map->elements_kind(); 3184 ElementsKind elements_kind = receiver_map->elements_kind();
3185 bool is_js_array = receiver_map->instance_type() == JS_ARRAY_TYPE; 3185 bool is_js_array = receiver_map->instance_type() == JS_ARRAY_TYPE;
3186 Handle<Code> stub = 3186 Handle<Code> stub =
3187 KeyedStoreElementStub(is_js_array, elements_kind, grow_mode_).GetCode(); 3187 KeyedStoreElementStub(is_js_array,
3188 elements_kind,
3189 grow_mode_).GetCode(isolate());
3188 3190
3189 __ DispatchMap(r2, r3, receiver_map, stub, DO_SMI_CHECK); 3191 __ DispatchMap(r2, r3, receiver_map, stub, DO_SMI_CHECK);
3190 3192
3191 Handle<Code> ic = isolate()->builtins()->KeyedStoreIC_Miss(); 3193 Handle<Code> ic = isolate()->builtins()->KeyedStoreIC_Miss();
3192 __ Jump(ic, RelocInfo::CODE_TARGET); 3194 __ Jump(ic, RelocInfo::CODE_TARGET);
3193 3195
3194 // Return the generated code. 3196 // Return the generated code.
3195 return GetCode(Code::NORMAL, factory()->empty_string()); 3197 return GetCode(Code::NORMAL, factory()->empty_string());
3196 } 3198 }
3197 3199
(...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after
4173 __ Jump(ic_slow, RelocInfo::CODE_TARGET); 4175 __ Jump(ic_slow, RelocInfo::CODE_TARGET);
4174 } 4176 }
4175 } 4177 }
4176 4178
4177 4179
4178 #undef __ 4180 #undef __
4179 4181
4180 } } // namespace v8::internal 4182 } } // namespace v8::internal
4181 4183
4182 #endif // V8_TARGET_ARCH_ARM 4184 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698