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

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

Issue 138843005: Merge missing r18658 from bleeding_edge and add missing files. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Add missing files. Created 6 years, 11 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/stub-cache-arm.cc ('k') | src/mips/stub-cache-mips.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 2202 matching lines...) Expand 10 before | Expand all | Expand 10 after
2213 // Return the generated code. 2213 // Return the generated code.
2214 return GetCode(Code::NORMAL, name); 2214 return GetCode(Code::NORMAL, name);
2215 } 2215 }
2216 2216
2217 2217
2218 Handle<Code> StoreStubCompiler::CompileStoreCallback( 2218 Handle<Code> StoreStubCompiler::CompileStoreCallback(
2219 Handle<JSObject> object, 2219 Handle<JSObject> object,
2220 Handle<JSObject> holder, 2220 Handle<JSObject> holder,
2221 Handle<Name> name, 2221 Handle<Name> name,
2222 Handle<ExecutableAccessorInfo> callback) { 2222 Handle<ExecutableAccessorInfo> callback) {
2223 HandlerFrontend(IC::CurrentTypeOf(object, isolate()), 2223 Register holder_reg = HandlerFrontend(
2224 receiver(), holder, name); 2224 IC::CurrentTypeOf(object, isolate()), receiver(), holder, name);
2225 2225
2226 __ pop(scratch1()); // remove the return address 2226 __ pop(scratch1()); // remove the return address
2227 __ push(receiver()); 2227 __ push(receiver());
2228 __ push(holder_reg);
2228 __ Push(callback); 2229 __ Push(callback);
2229 __ Push(name); 2230 __ Push(name);
2230 __ push(value()); 2231 __ push(value());
2231 __ push(scratch1()); // restore return address 2232 __ push(scratch1()); // restore return address
2232 2233
2233 // Do tail-call to the runtime system. 2234 // Do tail-call to the runtime system.
2234 ExternalReference store_callback_property = 2235 ExternalReference store_callback_property =
2235 ExternalReference(IC_Utility(IC::kStoreCallbackProperty), isolate()); 2236 ExternalReference(IC_Utility(IC::kStoreCallbackProperty), isolate());
2236 __ TailCallExternalReference(store_callback_property, 4, 1); 2237 __ TailCallExternalReference(store_callback_property, 5, 1);
2237 2238
2238 // Return the generated code. 2239 // Return the generated code.
2239 return GetCode(kind(), Code::FAST, name); 2240 return GetCode(kind(), Code::FAST, name);
2240 } 2241 }
2241 2242
2242 2243
2243 Handle<Code> StoreStubCompiler::CompileStoreCallback( 2244 Handle<Code> StoreStubCompiler::CompileStoreCallback(
2244 Handle<JSObject> object, 2245 Handle<JSObject> object,
2245 Handle<JSObject> holder, 2246 Handle<JSObject> holder,
2246 Handle<Name> name, 2247 Handle<Name> name,
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
2560 // ----------------------------------- 2561 // -----------------------------------
2561 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 2562 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
2562 } 2563 }
2563 2564
2564 2565
2565 #undef __ 2566 #undef __
2566 2567
2567 } } // namespace v8::internal 2568 } } // namespace v8::internal
2568 2569
2569 #endif // V8_TARGET_ARCH_IA32 2570 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/arm/stub-cache-arm.cc ('k') | src/mips/stub-cache-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698