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

Side by Side Diff: src/mips/stub-cache-mips.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/mips/macro-assembler-mips.cc ('k') | src/runtime.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 3061 matching lines...) Expand 10 before | Expand all | Expand 10 after
3072 // ----------- S t a t e ------------- 3072 // ----------- S t a t e -------------
3073 // -- ra : return address 3073 // -- ra : return address
3074 // -- a0 : key 3074 // -- a0 : key
3075 // -- a1 : receiver 3075 // -- a1 : receiver
3076 // ----------------------------------- 3076 // -----------------------------------
3077 ElementsKind elements_kind = receiver_map->elements_kind(); 3077 ElementsKind elements_kind = receiver_map->elements_kind();
3078 if (receiver_map->has_fast_elements() || 3078 if (receiver_map->has_fast_elements() ||
3079 receiver_map->has_external_array_elements()) { 3079 receiver_map->has_external_array_elements()) {
3080 Handle<Code> stub = KeyedLoadFastElementStub( 3080 Handle<Code> stub = KeyedLoadFastElementStub(
3081 receiver_map->instance_type() == JS_ARRAY_TYPE, 3081 receiver_map->instance_type() == JS_ARRAY_TYPE,
3082 elements_kind).GetCode(); 3082 elements_kind).GetCode(isolate());
3083 __ DispatchMap(a1, a2, receiver_map, stub, DO_SMI_CHECK); 3083 __ DispatchMap(a1, a2, receiver_map, stub, DO_SMI_CHECK);
3084 } else { 3084 } else {
3085 Handle<Code> stub = 3085 Handle<Code> stub =
3086 KeyedLoadDictionaryElementStub().GetCode(); 3086 KeyedLoadDictionaryElementStub().GetCode(isolate());
3087 __ DispatchMap(a1, a2, receiver_map, stub, DO_SMI_CHECK); 3087 __ DispatchMap(a1, a2, receiver_map, stub, DO_SMI_CHECK);
3088 } 3088 }
3089 3089
3090 Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Miss(); 3090 Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Miss();
3091 __ Jump(ic, RelocInfo::CODE_TARGET); 3091 __ Jump(ic, RelocInfo::CODE_TARGET);
3092 3092
3093 // Return the generated code. 3093 // Return the generated code.
3094 return GetCode(Code::NORMAL, factory()->empty_string()); 3094 return GetCode(Code::NORMAL, factory()->empty_string());
3095 } 3095 }
3096 3096
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
3168 // ----------- S t a t e ------------- 3168 // ----------- S t a t e -------------
3169 // -- a0 : value 3169 // -- a0 : value
3170 // -- a1 : key 3170 // -- a1 : key
3171 // -- a2 : receiver 3171 // -- a2 : receiver
3172 // -- ra : return address 3172 // -- ra : return address
3173 // -- a3 : scratch 3173 // -- a3 : scratch
3174 // ----------------------------------- 3174 // -----------------------------------
3175 ElementsKind elements_kind = receiver_map->elements_kind(); 3175 ElementsKind elements_kind = receiver_map->elements_kind();
3176 bool is_js_array = receiver_map->instance_type() == JS_ARRAY_TYPE; 3176 bool is_js_array = receiver_map->instance_type() == JS_ARRAY_TYPE;
3177 Handle<Code> stub = 3177 Handle<Code> stub =
3178 KeyedStoreElementStub(is_js_array, elements_kind, grow_mode_).GetCode(); 3178 KeyedStoreElementStub(is_js_array,
3179 elements_kind,
3180 grow_mode_).GetCode(isolate());
3179 3181
3180 __ DispatchMap(a2, a3, receiver_map, stub, DO_SMI_CHECK); 3182 __ DispatchMap(a2, a3, receiver_map, stub, DO_SMI_CHECK);
3181 3183
3182 Handle<Code> ic = isolate()->builtins()->KeyedStoreIC_Miss(); 3184 Handle<Code> ic = isolate()->builtins()->KeyedStoreIC_Miss();
3183 __ Jump(ic, RelocInfo::CODE_TARGET); 3185 __ Jump(ic, RelocInfo::CODE_TARGET);
3184 3186
3185 // Return the generated code. 3187 // Return the generated code.
3186 return GetCode(Code::NORMAL, factory()->empty_string()); 3188 return GetCode(Code::NORMAL, factory()->empty_string());
3187 } 3189 }
3188 3190
(...skipping 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after
4224 __ Jump(ic_slow, RelocInfo::CODE_TARGET); 4226 __ Jump(ic_slow, RelocInfo::CODE_TARGET);
4225 } 4227 }
4226 } 4228 }
4227 4229
4228 4230
4229 #undef __ 4231 #undef __
4230 4232
4231 } } // namespace v8::internal 4233 } } // namespace v8::internal
4232 4234
4233 #endif // V8_TARGET_ARCH_MIPS 4235 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/macro-assembler-mips.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698