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

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

Issue 12296026: ES6 symbols: Implement Symbol intrinsic and basic functionality (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed more comments 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/arm/lithium-codegen-arm.cc ('k') | src/bootstrapper.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 2486 matching lines...) Expand 10 before | Expand all | Expand 10 after
2497 CheckPrototypes( 2497 CheckPrototypes(
2498 Handle<JSObject>(JSObject::cast(object->GetPrototype())), 2498 Handle<JSObject>(JSObject::cast(object->GetPrototype())),
2499 r0, holder, r3, r1, r4, name, &miss); 2499 r0, holder, r3, r1, r4, name, &miss);
2500 } else { 2500 } else {
2501 // Calling non-strict non-builtins with a value as the receiver 2501 // Calling non-strict non-builtins with a value as the receiver
2502 // requires boxing. 2502 // requires boxing.
2503 __ jmp(&miss); 2503 __ jmp(&miss);
2504 } 2504 }
2505 break; 2505 break;
2506 2506
2507 case SYMBOL_CHECK:
2508 // Check that the object is a symbol.
2509 __ CompareObjectType(r1, r1, r3, SYMBOL_TYPE);
2510 __ b(ne, &miss);
2511 break;
2512
2507 case NUMBER_CHECK: 2513 case NUMBER_CHECK:
2508 if (function->IsBuiltin() || !function->shared()->is_classic_mode()) { 2514 if (function->IsBuiltin() || !function->shared()->is_classic_mode()) {
2509 Label fast; 2515 Label fast;
2510 // Check that the object is a smi or a heap number. 2516 // Check that the object is a smi or a heap number.
2511 __ JumpIfSmi(r1, &fast); 2517 __ JumpIfSmi(r1, &fast);
2512 __ CompareObjectType(r1, r0, r0, HEAP_NUMBER_TYPE); 2518 __ CompareObjectType(r1, r0, r0, HEAP_NUMBER_TYPE);
2513 __ b(ne, &miss); 2519 __ b(ne, &miss);
2514 __ bind(&fast); 2520 __ bind(&fast);
2515 // Check that the maps starting from the prototype haven't changed. 2521 // Check that the maps starting from the prototype haven't changed.
2516 GenerateDirectLoadGlobalFunctionPrototype( 2522 GenerateDirectLoadGlobalFunctionPrototype(
(...skipping 1648 matching lines...) Expand 10 before | Expand all | Expand 10 after
4165 __ Jump(ic_slow, RelocInfo::CODE_TARGET); 4171 __ Jump(ic_slow, RelocInfo::CODE_TARGET);
4166 } 4172 }
4167 } 4173 }
4168 4174
4169 4175
4170 #undef __ 4176 #undef __
4171 4177
4172 } } // namespace v8::internal 4178 } } // namespace v8::internal
4173 4179
4174 #endif // V8_TARGET_ARCH_ARM 4180 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698