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

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

Issue 15014020: Elide hole checks on KeyedLoads of holey double arrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Implement missing platforms and add tests Created 7 years, 7 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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 } 93 }
94 PopulateDeoptimizationData(code); 94 PopulateDeoptimizationData(code);
95 for (int i = 0 ; i < prototype_maps_.length(); i++) { 95 for (int i = 0 ; i < prototype_maps_.length(); i++) {
96 prototype_maps_.at(i)->AddDependentCode( 96 prototype_maps_.at(i)->AddDependentCode(
97 DependentCode::kPrototypeCheckGroup, code); 97 DependentCode::kPrototypeCheckGroup, code);
98 } 98 }
99 for (int i = 0 ; i < transition_maps_.length(); i++) { 99 for (int i = 0 ; i < transition_maps_.length(); i++) {
100 transition_maps_.at(i)->AddDependentCode( 100 transition_maps_.at(i)->AddDependentCode(
101 DependentCode::kTransitionGroup, code); 101 DependentCode::kTransitionGroup, code);
102 } 102 }
103 if (graph()->depends_on_empty_array_proto_elements()) {
104 isolate()->initial_object_prototype()->map()->AddDependentCode(
105 DependentCode::kElementsCantBeAddedGroup, code);
106 isolate()->initial_array_prototype()->map()->AddDependentCode(
107 DependentCode::kElementsCantBeAddedGroup, code);
108 }
103 } 109 }
104 110
105 111
106 void LChunkBuilder::Abort(const char* reason) { 112 void LChunkBuilder::Abort(const char* reason) {
107 info()->set_bailout_reason(reason); 113 info()->set_bailout_reason(reason);
108 status_ = ABORTED; 114 status_ = ABORTED;
109 } 115 }
110 116
111 117
112 void LCodeGen::Comment(const char* format, ...) { 118 void LCodeGen::Comment(const char* format, ...) {
(...skipping 5584 matching lines...) Expand 10 before | Expand all | Expand 10 after
5697 FixedArray::kHeaderSize - kPointerSize)); 5703 FixedArray::kHeaderSize - kPointerSize));
5698 __ bind(&done); 5704 __ bind(&done);
5699 } 5705 }
5700 5706
5701 5707
5702 #undef __ 5708 #undef __
5703 5709
5704 } } // namespace v8::internal 5710 } } // namespace v8::internal
5705 5711
5706 #endif // V8_TARGET_ARCH_X64 5712 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/isolate.cc ('K') | « src/objects.cc ('k') | test/mjsunit/elide-double-hole-check-1.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698