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

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

Issue 12507006: MIPS: Allocation Info Tracking, continued. (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
« no previous file with comments | « src/mips/macro-assembler-mips.h ('k') | no next file » | 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 4539 matching lines...) Expand 10 before | Expand all | Expand 10 after
4550 lw(function, 4550 lw(function,
4551 MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); 4551 MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX)));
4552 // Load the native context from the global or builtins object. 4552 // Load the native context from the global or builtins object.
4553 lw(function, FieldMemOperand(function, 4553 lw(function, FieldMemOperand(function,
4554 GlobalObject::kNativeContextOffset)); 4554 GlobalObject::kNativeContextOffset));
4555 // Load the function from the native context. 4555 // Load the function from the native context.
4556 lw(function, MemOperand(function, Context::SlotOffset(index))); 4556 lw(function, MemOperand(function, Context::SlotOffset(index)));
4557 } 4557 }
4558 4558
4559 4559
4560 void MacroAssembler::LoadArrayFunction(Register function) {
4561 // Load the global or builtins object from the current context.
4562 lw(function,
4563 MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX)));
4564 // Load the global context from the global or builtins object.
4565 lw(function,
4566 FieldMemOperand(function, GlobalObject::kGlobalContextOffset));
4567 // Load the array function from the native context.
4568 lw(function,
4569 MemOperand(function, Context::SlotOffset(Context::ARRAY_FUNCTION_INDEX)));
4570 }
4571
4572
4560 void MacroAssembler::LoadGlobalFunctionInitialMap(Register function, 4573 void MacroAssembler::LoadGlobalFunctionInitialMap(Register function,
4561 Register map, 4574 Register map,
4562 Register scratch) { 4575 Register scratch) {
4563 // Load the initial map. The global functions all have initial maps. 4576 // Load the initial map. The global functions all have initial maps.
4564 lw(map, FieldMemOperand(function, JSFunction::kPrototypeOrInitialMapOffset)); 4577 lw(map, FieldMemOperand(function, JSFunction::kPrototypeOrInitialMapOffset));
4565 if (emit_debug_code()) { 4578 if (emit_debug_code()) {
4566 Label ok, fail; 4579 Label ok, fail;
4567 CheckMap(map, scratch, Heap::kMetaMapRootIndex, &fail, DO_SMI_CHECK); 4580 CheckMap(map, scratch, Heap::kMetaMapRootIndex, &fail, DO_SMI_CHECK);
4568 Branch(&ok); 4581 Branch(&ok);
4569 bind(&fail); 4582 bind(&fail);
(...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after
5531 opcode == BGTZL); 5544 opcode == BGTZL);
5532 opcode = (cond == eq) ? BEQ : BNE; 5545 opcode = (cond == eq) ? BEQ : BNE;
5533 instr = (instr & ~kOpcodeMask) | opcode; 5546 instr = (instr & ~kOpcodeMask) | opcode;
5534 masm_.emit(instr); 5547 masm_.emit(instr);
5535 } 5548 }
5536 5549
5537 5550
5538 } } // namespace v8::internal 5551 } } // namespace v8::internal
5539 5552
5540 #endif // V8_TARGET_ARCH_MIPS 5553 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/macro-assembler-mips.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698