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/code-stubs-mips.cc

Issue 159423003: MIPS: Add kExpectedFixedArrayInRegisterA2 message. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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 | « no previous file | src/objects.h » ('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 5493 matching lines...) Expand 10 before | Expand all | Expand 10 after
5504 __ GetObjectType(t0, t0, t1); 5504 __ GetObjectType(t0, t0, t1);
5505 __ Assert(eq, kUnexpectedInitialMapForArrayFunction, 5505 __ Assert(eq, kUnexpectedInitialMapForArrayFunction,
5506 t1, Operand(MAP_TYPE)); 5506 t1, Operand(MAP_TYPE));
5507 5507
5508 // We should either have undefined in a2 or a valid fixed array. 5508 // We should either have undefined in a2 or a valid fixed array.
5509 Label okay_here; 5509 Label okay_here;
5510 Handle<Map> fixed_array_map = masm->isolate()->factory()->fixed_array_map(); 5510 Handle<Map> fixed_array_map = masm->isolate()->factory()->fixed_array_map();
5511 __ LoadRoot(at, Heap::kUndefinedValueRootIndex); 5511 __ LoadRoot(at, Heap::kUndefinedValueRootIndex);
5512 __ Branch(&okay_here, eq, a2, Operand(at)); 5512 __ Branch(&okay_here, eq, a2, Operand(at));
5513 __ lw(t0, FieldMemOperand(a2, 0)); 5513 __ lw(t0, FieldMemOperand(a2, 0));
5514 __ Assert(eq, kExpectedFixedArrayInRegisterR2, 5514 __ Assert(eq, kExpectedFixedArrayInRegisterA2,
5515 t0, Operand(fixed_array_map)); 5515 t0, Operand(fixed_array_map));
5516 5516
5517 // a3 should be a smi if we don't have undefined in a2 5517 // a3 should be a smi if we don't have undefined in a2
5518 __ AssertSmi(a3); 5518 __ AssertSmi(a3);
5519 5519
5520 __ bind(&okay_here); 5520 __ bind(&okay_here);
5521 } 5521 }
5522 5522
5523 Label no_info; 5523 Label no_info;
5524 // Get the elements kind and case on that. 5524 // Get the elements kind and case on that.
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
5755 MemOperand(fp, 6 * kPointerSize), 5755 MemOperand(fp, 6 * kPointerSize),
5756 NULL); 5756 NULL);
5757 } 5757 }
5758 5758
5759 5759
5760 #undef __ 5760 #undef __
5761 5761
5762 } } // namespace v8::internal 5762 } } // namespace v8::internal
5763 5763
5764 #endif // V8_TARGET_ARCH_MIPS 5764 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698