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

Side by Side Diff: src/ia32/stub-cache-ia32.cc

Issue 255543003: CodeStubs contain their corresponding Isolate* now. (part 2) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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
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 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after
1030 void LoadStubCompiler::GenerateLoadField(Register reg, 1030 void LoadStubCompiler::GenerateLoadField(Register reg,
1031 Handle<JSObject> holder, 1031 Handle<JSObject> holder,
1032 PropertyIndex field, 1032 PropertyIndex field,
1033 Representation representation) { 1033 Representation representation) {
1034 if (!reg.is(receiver())) __ mov(receiver(), reg); 1034 if (!reg.is(receiver())) __ mov(receiver(), reg);
1035 if (kind() == Code::LOAD_IC) { 1035 if (kind() == Code::LOAD_IC) {
1036 LoadFieldStub stub(isolate(), 1036 LoadFieldStub stub(isolate(),
1037 field.is_inobject(holder), 1037 field.is_inobject(holder),
1038 field.translate(holder), 1038 field.translate(holder),
1039 representation); 1039 representation);
1040 GenerateTailCall(masm(), stub.GetCode(isolate())); 1040 GenerateTailCall(masm(), stub.GetCode());
1041 } else { 1041 } else {
1042 KeyedLoadFieldStub stub(isolate(), 1042 KeyedLoadFieldStub stub(isolate(),
1043 field.is_inobject(holder), 1043 field.is_inobject(holder),
1044 field.translate(holder), 1044 field.translate(holder),
1045 representation); 1045 representation);
1046 GenerateTailCall(masm(), stub.GetCode(isolate())); 1046 GenerateTailCall(masm(), stub.GetCode());
1047 } 1047 }
1048 } 1048 }
1049 1049
1050 1050
1051 void LoadStubCompiler::GenerateLoadCallback( 1051 void LoadStubCompiler::GenerateLoadCallback(
1052 Register reg, 1052 Register reg,
1053 Handle<ExecutableAccessorInfo> callback) { 1053 Handle<ExecutableAccessorInfo> callback) {
1054 // Insert additional parameters into the stack frame above return address. 1054 // Insert additional parameters into the stack frame above return address.
1055 ASSERT(!scratch3().is(reg)); 1055 ASSERT(!scratch3().is(reg));
1056 __ pop(scratch3()); // Get return address to place it below. 1056 __ pop(scratch3()); // Get return address to place it below.
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
1568 // ----------------------------------- 1568 // -----------------------------------
1569 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 1569 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
1570 } 1570 }
1571 1571
1572 1572
1573 #undef __ 1573 #undef __
1574 1574
1575 } } // namespace v8::internal 1575 } } // namespace v8::internal
1576 1576
1577 #endif // V8_TARGET_ARCH_IA32 1577 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698