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

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

Issue 157543002: A64: Synchronize with r18581. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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/a64/simulator-a64.cc ('k') | src/allocation.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 2013 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
(...skipping 2364 matching lines...) Expand 10 before | Expand all | Expand 10 after
2375 void StubCompiler::GenerateBooleanCheck(Register object, Label* miss) { 2375 void StubCompiler::GenerateBooleanCheck(Register object, Label* miss) {
2376 Label success; 2376 Label success;
2377 // Check that the object is a boolean. 2377 // Check that the object is a boolean.
2378 // TODO(all): Optimize this like LCodeGen::DoDeferredTaggedToI. 2378 // TODO(all): Optimize this like LCodeGen::DoDeferredTaggedToI.
2379 __ JumpIfRoot(object, Heap::kTrueValueRootIndex, &success); 2379 __ JumpIfRoot(object, Heap::kTrueValueRootIndex, &success);
2380 __ JumpIfNotRoot(object, Heap::kFalseValueRootIndex, miss); 2380 __ JumpIfNotRoot(object, Heap::kFalseValueRootIndex, miss);
2381 __ Bind(&success); 2381 __ Bind(&success);
2382 } 2382 }
2383 2383
2384 2384
2385 void CallStubCompiler::PatchGlobalProxy(Handle<Object> object) { 2385 void CallStubCompiler::PatchImplicitReceiver(Handle<Object> object) {
2386 // TODO(all): What is x0 here? Is the use of x3 significant? 2386 // TODO(all): Is the use of x3 significant?
2387 if (object->IsGlobalObject()) { 2387 if (object->IsGlobalObject()) {
2388 const int argc = arguments().immediate(); 2388 const int argc = arguments().immediate();
2389 const int receiver_offset = argc * kPointerSize; 2389 const int receiver_offset = argc * kPointerSize;
2390 __ Ldr(x3, FieldMemOperand(x0, GlobalObject::kGlobalReceiverOffset)); 2390 __ LoadRoot(x3, Heap::kUndefinedValueRootIndex);
2391 __ Poke(x3, receiver_offset); 2391 __ Poke(x3, receiver_offset);
2392 } 2392 }
2393 } 2393 }
2394 2394
2395 2395
2396 Register CallStubCompiler::HandlerFrontendHeader(Handle<Object> object, 2396 Register CallStubCompiler::HandlerFrontendHeader(Handle<Object> object,
2397 Handle<JSObject> holder, 2397 Handle<JSObject> holder,
2398 Handle<Name> name, 2398 Handle<Name> name,
2399 CheckType check, 2399 CheckType check,
2400 Label* miss) { 2400 Label* miss) {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
2478 return receiver; 2478 return receiver;
2479 } 2479 }
2480 2480
2481 2481
2482 void CallStubCompiler::GenerateJumpFunction(Handle<Object> object, 2482 void CallStubCompiler::GenerateJumpFunction(Handle<Object> object,
2483 Register function, 2483 Register function,
2484 Label* miss) { 2484 Label* miss) {
2485 ASSERT(function.Is(x1)); 2485 ASSERT(function.Is(x1));
2486 // Check that the function really is a function. 2486 // Check that the function really is a function.
2487 GenerateFunctionCheck(function, x3, miss); 2487 GenerateFunctionCheck(function, x3, miss);
2488 PatchGlobalProxy(object); 2488 PatchImplicitReceiver(object);
2489 2489
2490 // Invoke the function. 2490 // Invoke the function.
2491 __ InvokeFunction(function, arguments(), JUMP_FUNCTION, 2491 __ InvokeFunction(function, arguments(), JUMP_FUNCTION,
2492 NullCallWrapper(), call_kind()); 2492 NullCallWrapper(), call_kind());
2493 } 2493 }
2494 2494
2495 2495
2496 Handle<Code> CallStubCompiler::CompileCallInterceptor(Handle<JSObject> object, 2496 Handle<Code> CallStubCompiler::CompileCallInterceptor(Handle<JSObject> object,
2497 Handle<JSObject> holder, 2497 Handle<JSObject> holder,
2498 Handle<Name> name) { 2498 Handle<Name> name) {
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
2929 2929
2930 // Miss case, call the runtime. 2930 // Miss case, call the runtime.
2931 __ Bind(&miss); 2931 __ Bind(&miss);
2932 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 2932 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
2933 } 2933 }
2934 2934
2935 2935
2936 } } // namespace v8::internal 2936 } } // namespace v8::internal
2937 2937
2938 #endif // V8_TARGET_ARCH_A64 2938 #endif // V8_TARGET_ARCH_A64
OLDNEW
« no previous file with comments | « src/a64/simulator-a64.cc ('k') | src/allocation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698