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

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

Issue 1589035: Revert change 4401. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 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
« no previous file with comments | « src/globals.h ('k') | src/ic.cc » ('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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 1930 matching lines...) Expand 10 before | Expand all | Expand 10 after
1941 __ bind(&miss); 1941 __ bind(&miss);
1942 __ DecrementCounter(&Counters::keyed_store_field, 1); 1942 __ DecrementCounter(&Counters::keyed_store_field, 1);
1943 Handle<Code> ic(Builtins::builtin(Builtins::KeyedStoreIC_Miss)); 1943 Handle<Code> ic(Builtins::builtin(Builtins::KeyedStoreIC_Miss));
1944 __ jmp(ic, RelocInfo::CODE_TARGET); 1944 __ jmp(ic, RelocInfo::CODE_TARGET);
1945 1945
1946 // Return the generated code. 1946 // Return the generated code.
1947 return GetCode(transition == NULL ? FIELD : MAP_TRANSITION, name); 1947 return GetCode(transition == NULL ? FIELD : MAP_TRANSITION, name);
1948 } 1948 }
1949 1949
1950 1950
1951 Object* LoadStubCompiler::CompileLoadNonexistent(JSObject* object) {
1952 // ----------- S t a t e -------------
1953 // -- eax : receiver
1954 // -- ecx : name
1955 // -- esp[0] : return address
1956 // -----------------------------------
1957 Label miss;
1958
1959 // Check the maps of the full prototype chain.
1960 JSObject* last = object;
1961 while (last->GetPrototype() != Heap::null_value()) {
1962 last = JSObject::cast(last->GetPrototype());
1963 }
1964 CheckPrototypes(object, eax, last, ebx, edx, Heap::empty_string(), &miss);
1965
1966 // Return undefined if maps of the full prototype chain is still the same.
1967 __ mov(eax, Factory::undefined_value());
1968 __ ret(0);
1969
1970 __ bind(&miss);
1971 GenerateLoadMiss(masm(), Code::LOAD_IC);
1972
1973 // Return the generated code.
1974 return GetCode(NONEXISTENT, Heap::empty_string());
1975 }
1976
1977 1951
1978 Object* LoadStubCompiler::CompileLoadField(JSObject* object, 1952 Object* LoadStubCompiler::CompileLoadField(JSObject* object,
1979 JSObject* holder, 1953 JSObject* holder,
1980 int index, 1954 int index,
1981 String* name) { 1955 String* name) {
1982 // ----------- S t a t e ------------- 1956 // ----------- S t a t e -------------
1983 // -- eax : receiver 1957 // -- eax : receiver
1984 // -- ecx : name 1958 // -- ecx : name
1985 // -- esp[0] : return address 1959 // -- esp[0] : return address
1986 // ----------------------------------- 1960 // -----------------------------------
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
2451 __ jmp(generic_construct_stub, RelocInfo::CODE_TARGET); 2425 __ jmp(generic_construct_stub, RelocInfo::CODE_TARGET);
2452 2426
2453 // Return the generated code. 2427 // Return the generated code.
2454 return GetCode(); 2428 return GetCode();
2455 } 2429 }
2456 2430
2457 2431
2458 #undef __ 2432 #undef __
2459 2433
2460 } } // namespace v8::internal 2434 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/globals.h ('k') | src/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698