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

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

Issue 6123007: Fixes needed to compile on gcc-4.4.1 on ARM. It is still necessary... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 11 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 | « SConstruct ('k') | src/arm/code-stubs-arm.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 495
496 Register function = r1; 496 Register function = r1;
497 if (FLAG_debug_code) { 497 if (FLAG_debug_code) {
498 __ LoadGlobalFunction(Context::STRING_FUNCTION_INDEX, r2); 498 __ LoadGlobalFunction(Context::STRING_FUNCTION_INDEX, r2);
499 __ cmp(function, Operand(r2)); 499 __ cmp(function, Operand(r2));
500 __ Assert(eq, "Unexpected String function"); 500 __ Assert(eq, "Unexpected String function");
501 } 501 }
502 502
503 // Load the first arguments in r0 and get rid of the rest. 503 // Load the first arguments in r0 and get rid of the rest.
504 Label no_arguments; 504 Label no_arguments;
505 __ cmp(r0, Operand(0)); 505 __ cmp(r0, Operand(0, RelocInfo::NONE));
506 __ b(eq, &no_arguments); 506 __ b(eq, &no_arguments);
507 // First args = sp[(argc - 1) * 4]. 507 // First args = sp[(argc - 1) * 4].
508 __ sub(r0, r0, Operand(1)); 508 __ sub(r0, r0, Operand(1));
509 __ ldr(r0, MemOperand(sp, r0, LSL, kPointerSizeLog2, PreIndex)); 509 __ ldr(r0, MemOperand(sp, r0, LSL, kPointerSizeLog2, PreIndex));
510 // sp now point to args[0], drop args[0] + receiver. 510 // sp now point to args[0], drop args[0] + receiver.
511 __ Drop(2); 511 __ Drop(2);
512 512
513 Register argument = r2; 513 Register argument = r2;
514 Label not_cached, argument_is_string; 514 Label not_cached, argument_is_string;
515 NumberToStringStub::GenerateLookupNumberStringCache( 515 NumberToStringStub::GenerateLookupNumberStringCache(
(...skipping 23 matching lines...) Expand all
539 TAG_OBJECT); 539 TAG_OBJECT);
540 540
541 // Initialising the String Object. 541 // Initialising the String Object.
542 Register map = r3; 542 Register map = r3;
543 __ LoadGlobalFunctionInitialMap(function, map, r4); 543 __ LoadGlobalFunctionInitialMap(function, map, r4);
544 if (FLAG_debug_code) { 544 if (FLAG_debug_code) {
545 __ ldrb(r4, FieldMemOperand(map, Map::kInstanceSizeOffset)); 545 __ ldrb(r4, FieldMemOperand(map, Map::kInstanceSizeOffset));
546 __ cmp(r4, Operand(JSValue::kSize >> kPointerSizeLog2)); 546 __ cmp(r4, Operand(JSValue::kSize >> kPointerSizeLog2));
547 __ Assert(eq, "Unexpected string wrapper instance size"); 547 __ Assert(eq, "Unexpected string wrapper instance size");
548 __ ldrb(r4, FieldMemOperand(map, Map::kUnusedPropertyFieldsOffset)); 548 __ ldrb(r4, FieldMemOperand(map, Map::kUnusedPropertyFieldsOffset));
549 __ cmp(r4, Operand(0)); 549 __ cmp(r4, Operand(0, RelocInfo::NONE));
550 __ Assert(eq, "Unexpected unused properties of string wrapper"); 550 __ Assert(eq, "Unexpected unused properties of string wrapper");
551 } 551 }
552 __ str(map, FieldMemOperand(r0, HeapObject::kMapOffset)); 552 __ str(map, FieldMemOperand(r0, HeapObject::kMapOffset));
553 553
554 __ LoadRoot(r3, Heap::kEmptyFixedArrayRootIndex); 554 __ LoadRoot(r3, Heap::kEmptyFixedArrayRootIndex);
555 __ str(r3, FieldMemOperand(r0, JSObject::kPropertiesOffset)); 555 __ str(r3, FieldMemOperand(r0, JSObject::kPropertiesOffset));
556 __ str(r3, FieldMemOperand(r0, JSObject::kElementsOffset)); 556 __ str(r3, FieldMemOperand(r0, JSObject::kElementsOffset));
557 557
558 __ str(argument, FieldMemOperand(r0, JSValue::kValueOffset)); 558 __ str(argument, FieldMemOperand(r0, JSValue::kValueOffset));
559 559
(...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after
1565 __ bind(&dont_adapt_arguments); 1565 __ bind(&dont_adapt_arguments);
1566 __ Jump(r3); 1566 __ Jump(r3);
1567 } 1567 }
1568 1568
1569 1569
1570 #undef __ 1570 #undef __
1571 1571
1572 } } // namespace v8::internal 1572 } } // namespace v8::internal
1573 1573
1574 #endif // V8_TARGET_ARCH_ARM 1574 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « SConstruct ('k') | src/arm/code-stubs-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698