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

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

Issue 13007003: MIPS: ES6 symbols: turn symbols into a proper primitive type (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
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 2406 matching lines...) Expand 10 before | Expand all | Expand 10 after
2417 masm(), Context::STRING_FUNCTION_INDEX, a0, &miss); 2417 masm(), Context::STRING_FUNCTION_INDEX, a0, &miss);
2418 CheckPrototypes( 2418 CheckPrototypes(
2419 Handle<JSObject>(JSObject::cast(object->GetPrototype(isolate()))), 2419 Handle<JSObject>(JSObject::cast(object->GetPrototype(isolate()))),
2420 a0, holder, a3, a1, t0, name, &miss); 2420 a0, holder, a3, a1, t0, name, &miss);
2421 break; 2421 break;
2422 2422
2423 case SYMBOL_CHECK: 2423 case SYMBOL_CHECK:
2424 // Check that the object is a symbol. 2424 // Check that the object is a symbol.
2425 __ GetObjectType(a1, a1, a3); 2425 __ GetObjectType(a1, a1, a3);
2426 __ Branch(&miss, ne, a3, Operand(SYMBOL_TYPE)); 2426 __ Branch(&miss, ne, a3, Operand(SYMBOL_TYPE));
2427 // Check that the maps starting from the prototype haven't changed.
2428 GenerateDirectLoadGlobalFunctionPrototype(
2429 masm(), Context::SYMBOL_FUNCTION_INDEX, a0, &miss);
2430 CheckPrototypes(
2431 Handle<JSObject>(JSObject::cast(object->GetPrototype(isolate()))),
2432 a0, holder, a3, a1, t0, name, &miss);
2427 break; 2433 break;
2428 2434
2429 case NUMBER_CHECK: { 2435 case NUMBER_CHECK: {
2430 Label fast; 2436 Label fast;
2431 // Check that the object is a smi or a heap number. 2437 // Check that the object is a smi or a heap number.
2432 __ JumpIfSmi(a1, &fast); 2438 __ JumpIfSmi(a1, &fast);
2433 __ GetObjectType(a1, a0, a0); 2439 __ GetObjectType(a1, a0, a0);
2434 __ Branch(&miss, ne, a0, Operand(HEAP_NUMBER_TYPE)); 2440 __ Branch(&miss, ne, a0, Operand(HEAP_NUMBER_TYPE));
2435 __ bind(&fast); 2441 __ bind(&fast);
2436 // Check that the maps starting from the prototype haven't changed. 2442 // Check that the maps starting from the prototype haven't changed.
(...skipping 1501 matching lines...) Expand 10 before | Expand all | Expand 10 after
3938 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); 3944 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow);
3939 } 3945 }
3940 } 3946 }
3941 3947
3942 3948
3943 #undef __ 3949 #undef __
3944 3950
3945 } } // namespace v8::internal 3951 } } // namespace v8::internal
3946 3952
3947 #endif // V8_TARGET_ARCH_MIPS 3953 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« src/mips/lithium-codegen-mips.cc ('K') | « src/mips/lithium-codegen-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698