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

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

Issue 23697002: Implement proper map checks of captured objects. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments by Toon Verwaest. Created 7 years, 3 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/mips/lithium-mips.h ('k') | src/x64/lithium-codegen-x64.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 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 1916 matching lines...) Expand 10 before | Expand all | Expand 10 after
1927 } 1927 }
1928 1928
1929 1929
1930 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { 1930 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) {
1931 LOperand* value = UseRegisterAtStart(instr->value()); 1931 LOperand* value = UseRegisterAtStart(instr->value());
1932 LInstruction* result = new(zone()) LCheckInstanceType(value); 1932 LInstruction* result = new(zone()) LCheckInstanceType(value);
1933 return AssignEnvironment(result); 1933 return AssignEnvironment(result);
1934 } 1934 }
1935 1935
1936 1936
1937 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) { 1937 LInstruction* LChunkBuilder::DoCheckValue(HCheckValue* instr) {
1938 LOperand* value = UseRegisterAtStart(instr->value()); 1938 LOperand* value = UseRegisterAtStart(instr->value());
1939 return AssignEnvironment(new(zone()) LCheckFunction(value)); 1939 return AssignEnvironment(new(zone()) LCheckValue(value));
1940 } 1940 }
1941 1941
1942 1942
1943 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) { 1943 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) {
1944 LOperand* value = NULL; 1944 LOperand* value = NULL;
1945 if (!instr->CanOmitMapChecks()) { 1945 if (!instr->CanOmitMapChecks()) {
1946 value = UseRegisterAtStart(instr->value()); 1946 value = UseRegisterAtStart(instr->value());
1947 if (instr->has_migration_target()) info()->MarkAsDeferredCalling(); 1947 if (instr->has_migration_target()) info()->MarkAsDeferredCalling();
1948 } 1948 }
1949 LCheckMaps* result = new(zone()) LCheckMaps(value); 1949 LCheckMaps* result = new(zone()) LCheckMaps(value);
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
2499 2499
2500 2500
2501 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2501 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2502 LOperand* object = UseRegister(instr->object()); 2502 LOperand* object = UseRegister(instr->object());
2503 LOperand* index = UseRegister(instr->index()); 2503 LOperand* index = UseRegister(instr->index());
2504 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2504 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2505 } 2505 }
2506 2506
2507 2507
2508 } } // namespace v8::internal 2508 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698