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/mips/lithium-codegen-mips.cc

Issue 313183007: MIPS: Preliminary support for block contexts in hydrogen. (Closed) Base URL: git@github.com:paul99/v8m-rb.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | src/mips/lithium-mips.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.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
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 5856 matching lines...) Expand 10 before | Expand all | Expand 10 after
5867 __ lw(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); 5867 __ lw(result, FieldMemOperand(object, JSObject::kPropertiesOffset));
5868 // Index is equal to negated out of object property index plus 1. 5868 // Index is equal to negated out of object property index plus 1.
5869 __ Subu(scratch, result, scratch); 5869 __ Subu(scratch, result, scratch);
5870 __ lw(result, FieldMemOperand(scratch, 5870 __ lw(result, FieldMemOperand(scratch,
5871 FixedArray::kHeaderSize - kPointerSize)); 5871 FixedArray::kHeaderSize - kPointerSize));
5872 __ bind(deferred->exit()); 5872 __ bind(deferred->exit());
5873 __ bind(&done); 5873 __ bind(&done);
5874 } 5874 }
5875 5875
5876 5876
5877 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) {
5878 Register context = ToRegister(instr->context());
5879 __ sw(context, MemOperand(fp, StandardFrameConstants::kContextOffset));
5880 }
5881
5882
5883 void LCodeGen::DoAllocateBlockContext(LAllocateBlockContext* instr) {
5884 Handle<ScopeInfo> scope_info = instr->scope_info();
5885 __ li(at, scope_info);
5886 __ Push(at, ToRegister(instr->function()));
5887 CallRuntime(Runtime::kHiddenPushBlockContext, 2, instr);
5888 RecordSafepoint(Safepoint::kNoLazyDeopt);
5889 }
5890
5891
5877 #undef __ 5892 #undef __
5878 5893
5879 } } // namespace v8::internal 5894 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/mips/lithium-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698