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

Side by Side Diff: src/mips/macro-assembler-mips.cc

Issue 11099064: Remove descriptors pointer. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed nits Created 8 years, 2 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/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 5287 matching lines...) Expand 10 before | Expand all | Expand 10 after
5298 Register scratch) { 5298 Register scratch) {
5299 Register temp = descriptors; 5299 Register temp = descriptors;
5300 lw(temp, FieldMemOperand(map, Map::kTransitionsOrBackPointerOffset)); 5300 lw(temp, FieldMemOperand(map, Map::kTransitionsOrBackPointerOffset));
5301 5301
5302 Label ok, fail, load_from_back_pointer; 5302 Label ok, fail, load_from_back_pointer;
5303 CheckMap(temp, 5303 CheckMap(temp,
5304 scratch, 5304 scratch,
5305 isolate()->factory()->fixed_array_map(), 5305 isolate()->factory()->fixed_array_map(),
5306 &fail, 5306 &fail,
5307 DONT_DO_SMI_CHECK); 5307 DONT_DO_SMI_CHECK);
5308 lw(temp, FieldMemOperand(temp, TransitionArray::kDescriptorsPointerOffset)); 5308 lw(descriptors, FieldMemOperand(temp, TransitionArray::kDescriptorsOffset));
5309 lw(descriptors, FieldMemOperand(temp, JSGlobalPropertyCell::kValueOffset));
5310 jmp(&ok); 5309 jmp(&ok);
5311 5310
5312 bind(&fail); 5311 bind(&fail);
5313 LoadRoot(scratch, Heap::kUndefinedValueRootIndex); 5312 LoadRoot(scratch, Heap::kUndefinedValueRootIndex);
5314 Branch(&load_from_back_pointer, ne, temp, Operand(scratch)); 5313 Branch(&load_from_back_pointer, ne, temp, Operand(scratch));
5315 LoadRoot(descriptors, Heap::kEmptyDescriptorArrayRootIndex); 5314 LoadRoot(descriptors, Heap::kEmptyDescriptorArrayRootIndex);
5316 jmp(&ok); 5315 jmp(&ok);
5317 5316
5318 bind(&load_from_back_pointer); 5317 bind(&load_from_back_pointer);
5319 lw(temp, FieldMemOperand(temp, Map::kTransitionsOrBackPointerOffset)); 5318 lw(temp, FieldMemOperand(temp, Map::kTransitionsOrBackPointerOffset));
5320 lw(temp, FieldMemOperand(temp, TransitionArray::kDescriptorsPointerOffset)); 5319 lw(descriptors, FieldMemOperand(temp, TransitionArray::kDescriptorsOffset));
5321 lw(descriptors, FieldMemOperand(temp, JSGlobalPropertyCell::kValueOffset));
5322 5320
5323 bind(&ok); 5321 bind(&ok);
5324 } 5322 }
5325 5323
5326 5324
5327 void MacroAssembler::NumberOfOwnDescriptors(Register dst, Register map) { 5325 void MacroAssembler::NumberOfOwnDescriptors(Register dst, Register map) {
5328 lw(dst, FieldMemOperand(map, Map::kBitField3Offset)); 5326 lw(dst, FieldMemOperand(map, Map::kBitField3Offset));
5329 DecodeField<Map::NumberOfOwnDescriptorsBits>(dst); 5327 DecodeField<Map::NumberOfOwnDescriptorsBits>(dst);
5330 } 5328 }
5331 5329
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
5475 opcode == BGTZL); 5473 opcode == BGTZL);
5476 opcode = (cond == eq) ? BEQ : BNE; 5474 opcode = (cond == eq) ? BEQ : BNE;
5477 instr = (instr & ~kOpcodeMask) | opcode; 5475 instr = (instr & ~kOpcodeMask) | opcode;
5478 masm_.emit(instr); 5476 masm_.emit(instr);
5479 } 5477 }
5480 5478
5481 5479
5482 } } // namespace v8::internal 5480 } } // namespace v8::internal
5483 5481
5484 #endif // V8_TARGET_ARCH_MIPS 5482 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698