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

Side by Side Diff: src/ia32/lithium-codegen-ia32.cc

Issue 9187003: Merge r10380, r10381 from the bleeding_edge to the 3.7 branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/3.7/
Patch Set: Created 8 years, 11 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/ia32/code-stubs-ia32.cc ('k') | src/incremental-marking.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1964 matching lines...) Expand 10 before | Expand all | Expand 10 after
1975 // A Smi is not an instance of anything. 1975 // A Smi is not an instance of anything.
1976 __ JumpIfSmi(object, &false_result); 1976 __ JumpIfSmi(object, &false_result);
1977 1977
1978 // This is the inlined call site instanceof cache. The two occurences of the 1978 // This is the inlined call site instanceof cache. The two occurences of the
1979 // hole value will be patched to the last map/result pair generated by the 1979 // hole value will be patched to the last map/result pair generated by the
1980 // instanceof stub. 1980 // instanceof stub.
1981 Label cache_miss; 1981 Label cache_miss;
1982 Register map = ToRegister(instr->TempAt(0)); 1982 Register map = ToRegister(instr->TempAt(0));
1983 __ mov(map, FieldOperand(object, HeapObject::kMapOffset)); 1983 __ mov(map, FieldOperand(object, HeapObject::kMapOffset));
1984 __ bind(deferred->map_check()); // Label for calculating code patching. 1984 __ bind(deferred->map_check()); // Label for calculating code patching.
1985 __ cmp(map, factory()->the_hole_value()); // Patched to cached map. 1985 Handle<JSGlobalPropertyCell> cache_cell =
1986 factory()->NewJSGlobalPropertyCell(factory()->the_hole_value());
1987 __ cmp(map, Operand::Cell(cache_cell)); // Patched to cached map.
1986 __ j(not_equal, &cache_miss, Label::kNear); 1988 __ j(not_equal, &cache_miss, Label::kNear);
1987 __ mov(eax, factory()->the_hole_value()); // Patched to either true or false. 1989 __ mov(eax, factory()->the_hole_value()); // Patched to either true or false.
1988 __ jmp(&done); 1990 __ jmp(&done);
1989 1991
1990 // The inlined call site cache did not match. Check for null and string 1992 // The inlined call site cache did not match. Check for null and string
1991 // before calling the deferred code. 1993 // before calling the deferred code.
1992 __ bind(&cache_miss); 1994 __ bind(&cache_miss);
1993 // Null is not an instance of anything. 1995 // Null is not an instance of anything.
1994 __ cmp(object, factory()->null_value()); 1996 __ cmp(object, factory()->null_value());
1995 __ j(equal, &false_result); 1997 __ j(equal, &false_result);
(...skipping 2635 matching lines...) Expand 10 before | Expand all | Expand 10 after
4631 this, pointers, Safepoint::kLazyDeopt); 4633 this, pointers, Safepoint::kLazyDeopt);
4632 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator); 4634 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator);
4633 } 4635 }
4634 4636
4635 4637
4636 #undef __ 4638 #undef __
4637 4639
4638 } } // namespace v8::internal 4640 } } // namespace v8::internal
4639 4641
4640 #endif // V8_TARGET_ARCH_IA32 4642 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/incremental-marking.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698