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

Side by Side Diff: src/ppc/builtins-ppc.cc

Issue 1500993003: PPC: Refine "[runtime] [proxy] removing JSFunctionProxy and related code." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #if V8_TARGET_ARCH_PPC 5 #if V8_TARGET_ARCH_PPC
6 6
7 #include "src/codegen.h" 7 #include "src/codegen.h"
8 #include "src/debug/debug.h" 8 #include "src/debug/debug.h"
9 #include "src/deoptimizer.h" 9 #include "src/deoptimizer.h"
10 #include "src/full-codegen/full-codegen.h" 10 #include "src/full-codegen/full-codegen.h"
(...skipping 1680 matching lines...) Expand 10 before | Expand all | Expand 10 after
1691 1691
1692 Label non_callable, non_function, non_smi; 1692 Label non_callable, non_function, non_smi;
1693 __ JumpIfSmi(r4, &non_callable); 1693 __ JumpIfSmi(r4, &non_callable);
1694 __ bind(&non_smi); 1694 __ bind(&non_smi);
1695 __ CompareObjectType(r4, r7, r8, JS_FUNCTION_TYPE); 1695 __ CompareObjectType(r4, r7, r8, JS_FUNCTION_TYPE);
1696 __ Jump(masm->isolate()->builtins()->CallFunction(mode), 1696 __ Jump(masm->isolate()->builtins()->CallFunction(mode),
1697 RelocInfo::CODE_TARGET, eq); 1697 RelocInfo::CODE_TARGET, eq);
1698 __ cmpi(r8, Operand(JS_PROXY_TYPE)); 1698 __ cmpi(r8, Operand(JS_PROXY_TYPE));
1699 __ bne(&non_function); 1699 __ bne(&non_function);
1700 1700
1701 // 1. Call to function proxy. 1701 // 1. Call to proxy.
1702 // TODO(neis): Implement [[Call]] on proxies. 1702 // TODO(neis): Implement [[Call]] on proxies.
1703 1703
1704 // 2. Call to something else, which might have a [[Call]] internal method (if 1704 // 2. Call to something else, which might have a [[Call]] internal method (if
1705 // not we raise an exception). 1705 // not we raise an exception).
1706 __ bind(&non_function); 1706 __ bind(&non_function);
1707 // Check if target has a [[Call]] internal method. 1707 // Check if target has a [[Call]] internal method.
1708 __ lbz(r7, FieldMemOperand(r7, Map::kBitFieldOffset)); 1708 __ lbz(r7, FieldMemOperand(r7, Map::kBitFieldOffset));
1709 __ TestBit(r7, Map::kIsCallable, r0); 1709 __ TestBit(r7, Map::kIsCallable, r0);
1710 __ beq(&non_callable, cr0); 1710 __ beq(&non_callable, cr0);
1711 // Overwrite the original receiver the (original) target. 1711 // Overwrite the original receiver the (original) target.
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
1965 __ bkpt(0); 1965 __ bkpt(0);
1966 } 1966 }
1967 } 1967 }
1968 1968
1969 1969
1970 #undef __ 1970 #undef __
1971 } // namespace internal 1971 } // namespace internal
1972 } // namespace v8 1972 } // namespace v8
1973 1973
1974 #endif // V8_TARGET_ARCH_PPC 1974 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698