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

Side by Side Diff: src/x64/code-stubs-x64.cc

Issue 16925008: Generate StoreGlobal stubs with Hydrogen (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address feedback Created 7 years, 5 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2013 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
11 // with the distribution. 11 // with the distribution.
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 Isolate* isolate, 230 Isolate* isolate,
231 CodeStubInterfaceDescriptor* descriptor) { 231 CodeStubInterfaceDescriptor* descriptor) {
232 static Register registers[] = { rax }; 232 static Register registers[] = { rax };
233 descriptor->register_param_count_ = 1; 233 descriptor->register_param_count_ = 1;
234 descriptor->register_params_ = registers; 234 descriptor->register_params_ = registers;
235 descriptor->deoptimization_handler_ = 235 descriptor->deoptimization_handler_ =
236 FUNCTION_ADDR(UnaryOpIC_Miss); 236 FUNCTION_ADDR(UnaryOpIC_Miss);
237 } 237 }
238 238
239 239
240 void StoreGlobalStub::InitializeInterfaceDescriptor(
241 Isolate* isolate,
242 CodeStubInterfaceDescriptor* descriptor) {
243 static Register registers[] = { rdx, rcx, rax };
244 descriptor->register_param_count_ = 3;
245 descriptor->register_params_ = registers;
246 descriptor->deoptimization_handler_ =
247 FUNCTION_ADDR(StoreIC_MissFromStubFailure);
248 }
249
250
240 #define __ ACCESS_MASM(masm) 251 #define __ ACCESS_MASM(masm)
241 252
242 253
243 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { 254 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) {
244 // Update the static counter each time a new code stub is generated. 255 // Update the static counter each time a new code stub is generated.
245 Isolate* isolate = masm->isolate(); 256 Isolate* isolate = masm->isolate();
246 isolate->counters()->code_stubs()->Increment(); 257 isolate->counters()->code_stubs()->Increment();
247 258
248 CodeStubInterfaceDescriptor* descriptor = GetInterfaceDescriptor(isolate); 259 CodeStubInterfaceDescriptor* descriptor = GetInterfaceDescriptor(isolate);
249 int param_count = descriptor->register_param_count_; 260 int param_count = descriptor->register_param_count_;
(...skipping 6507 matching lines...) Expand 10 before | Expand all | Expand 10 after
6757 __ bind(&fast_elements_case); 6768 __ bind(&fast_elements_case);
6758 GenerateCase(masm, FAST_ELEMENTS); 6769 GenerateCase(masm, FAST_ELEMENTS);
6759 } 6770 }
6760 6771
6761 6772
6762 #undef __ 6773 #undef __
6763 6774
6764 } } // namespace v8::internal 6775 } } // namespace v8::internal
6765 6776
6766 #endif // V8_TARGET_ARCH_X64 6777 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698