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

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

Issue 2586001: Add test_b(Operand, immediate) to ia32 assembler, and use it where possible. ... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 6 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/ia32/macro-assembler-ia32.cc ('k') | src/x64/codegen-x64.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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 1502 matching lines...) Expand 10 before | Expand all | Expand 10 after
1513 __ mov(Operand(esp, (argc + 1) * kPointerSize), edx); 1513 __ mov(Operand(esp, (argc + 1) * kPointerSize), edx);
1514 } 1514 }
1515 break; 1515 break;
1516 1516
1517 case STRING_CHECK: 1517 case STRING_CHECK:
1518 if (!function->IsBuiltin()) { 1518 if (!function->IsBuiltin()) {
1519 // Calling non-builtins with a value as receiver requires boxing. 1519 // Calling non-builtins with a value as receiver requires boxing.
1520 __ jmp(&miss); 1520 __ jmp(&miss);
1521 } else { 1521 } else {
1522 // Check that the object is a string or a symbol. 1522 // Check that the object is a string or a symbol.
1523 __ mov(eax, FieldOperand(edx, HeapObject::kMapOffset)); 1523 __ CmpObjectType(edx, FIRST_NONSTRING_TYPE, eax);
1524 __ movzx_b(eax, FieldOperand(eax, Map::kInstanceTypeOffset));
1525 __ cmp(eax, FIRST_NONSTRING_TYPE);
1526 __ j(above_equal, &miss, not_taken); 1524 __ j(above_equal, &miss, not_taken);
1527 // Check that the maps starting from the prototype haven't changed. 1525 // Check that the maps starting from the prototype haven't changed.
1528 GenerateLoadGlobalFunctionPrototype(masm(), 1526 GenerateLoadGlobalFunctionPrototype(masm(),
1529 Context::STRING_FUNCTION_INDEX, 1527 Context::STRING_FUNCTION_INDEX,
1530 eax); 1528 eax);
1531 CheckPrototypes(JSObject::cast(object->GetPrototype()), eax, holder, 1529 CheckPrototypes(JSObject::cast(object->GetPrototype()), eax, holder,
1532 ebx, edx, name, &miss); 1530 ebx, edx, name, &miss);
1533 } 1531 }
1534 break; 1532 break;
1535 1533
(...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after
2471 // Return the generated code. 2469 // Return the generated code.
2472 return GetCode(); 2470 return GetCode();
2473 } 2471 }
2474 2472
2475 2473
2476 #undef __ 2474 #undef __
2477 2475
2478 } } // namespace v8::internal 2476 } } // namespace v8::internal
2479 2477
2480 #endif // V8_TARGET_ARCH_IA32 2478 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698