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

Side by Side Diff: src/crankshaft/mips/lithium-codegen-mips.cc

Issue 2507143003: [ic] Pass globals' names to Runtime::kDeclareGlobals. (Closed)
Patch Set: Created 4 years, 1 month 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
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 3040 matching lines...) Expand 10 before | Expand all | Expand 10 after
3051 __ lw(result, MemOperand(fp, StandardFrameConstants::kContextOffset)); 3051 __ lw(result, MemOperand(fp, StandardFrameConstants::kContextOffset));
3052 } else { 3052 } else {
3053 // If there is no frame, the context must be in cp. 3053 // If there is no frame, the context must be in cp.
3054 DCHECK(result.is(cp)); 3054 DCHECK(result.is(cp));
3055 } 3055 }
3056 } 3056 }
3057 3057
3058 3058
3059 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { 3059 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) {
3060 DCHECK(ToRegister(instr->context()).is(cp)); 3060 DCHECK(ToRegister(instr->context()).is(cp));
3061 __ li(scratch0(), instr->hydrogen()->pairs()); 3061 __ li(scratch0(), instr->hydrogen()->declarations());
3062 __ li(scratch1(), Operand(Smi::FromInt(instr->hydrogen()->flags()))); 3062 __ li(scratch1(), Operand(Smi::FromInt(instr->hydrogen()->flags())));
3063 __ Push(scratch0(), scratch1()); 3063 __ Push(scratch0(), scratch1());
3064 __ li(scratch0(), instr->hydrogen()->feedback_vector()); 3064 __ li(scratch0(), instr->hydrogen()->feedback_vector());
3065 __ Push(scratch0()); 3065 __ Push(scratch0());
3066 CallRuntime(Runtime::kDeclareGlobals, instr); 3066 CallRuntime(Runtime::kDeclareGlobals, instr);
3067 } 3067 }
3068 3068
3069 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, 3069 void LCodeGen::CallKnownFunction(Handle<JSFunction> function,
3070 int formal_parameter_count, int arity, 3070 int formal_parameter_count, int arity,
3071 bool is_tail_call, LInstruction* instr) { 3071 bool is_tail_call, LInstruction* instr) {
(...skipping 2342 matching lines...) Expand 10 before | Expand all | Expand 10 after
5414 __ lw(result, FieldMemOperand(scratch, 5414 __ lw(result, FieldMemOperand(scratch,
5415 FixedArray::kHeaderSize - kPointerSize)); 5415 FixedArray::kHeaderSize - kPointerSize));
5416 __ bind(deferred->exit()); 5416 __ bind(deferred->exit());
5417 __ bind(&done); 5417 __ bind(&done);
5418 } 5418 }
5419 5419
5420 #undef __ 5420 #undef __
5421 5421
5422 } // namespace internal 5422 } // namespace internal
5423 } // namespace v8 5423 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/ia32/lithium-codegen-ia32.cc ('k') | src/crankshaft/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698