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

Side by Side Diff: src/compiler.cc

Issue 736383002: Remove superflous SharedFunctionInfo::uses_super call. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | 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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/compiler.h" 7 #include "src/compiler.h"
8 8
9 #include "src/ast-numbering.h" 9 #include "src/ast-numbering.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after
1344 } 1344 }
1345 1345
1346 // Create a shared function info object. 1346 // Create a shared function info object.
1347 Handle<SharedFunctionInfo> result = factory->NewSharedFunctionInfo( 1347 Handle<SharedFunctionInfo> result = factory->NewSharedFunctionInfo(
1348 literal->name(), literal->materialized_literal_count(), literal->kind(), 1348 literal->name(), literal->materialized_literal_count(), literal->kind(),
1349 info.code(), scope_info, info.feedback_vector()); 1349 info.code(), scope_info, info.feedback_vector());
1350 SetFunctionInfo(result, literal, false, script); 1350 SetFunctionInfo(result, literal, false, script);
1351 RecordFunctionCompilation(Logger::FUNCTION_TAG, &info, result); 1351 RecordFunctionCompilation(Logger::FUNCTION_TAG, &info, result);
1352 result->set_allows_lazy_compilation(allow_lazy); 1352 result->set_allows_lazy_compilation(allow_lazy);
1353 result->set_allows_lazy_compilation_without_context(allow_lazy_without_ctx); 1353 result->set_allows_lazy_compilation_without_context(allow_lazy_without_ctx);
1354 result->set_uses_super(literal->uses_super());
1355 1354
1356 // Set the expected number of properties for instances and return 1355 // Set the expected number of properties for instances and return
1357 // the resulting function. 1356 // the resulting function.
1358 SetExpectedNofPropertiesFromEstimate(result, 1357 SetExpectedNofPropertiesFromEstimate(result,
1359 literal->expected_property_count()); 1358 literal->expected_property_count());
1360 live_edit_tracker.RecordFunctionInfo(result, literal, info.zone()); 1359 live_edit_tracker.RecordFunctionInfo(result, literal, info.zone());
1361 return result; 1360 return result;
1362 } 1361 }
1363 1362
1364 1363
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
1493 AllowHandleDereference allow_deref; 1492 AllowHandleDereference allow_deref;
1494 bool tracing_on = info()->IsStub() 1493 bool tracing_on = info()->IsStub()
1495 ? FLAG_trace_hydrogen_stubs 1494 ? FLAG_trace_hydrogen_stubs
1496 : (FLAG_trace_hydrogen && 1495 : (FLAG_trace_hydrogen &&
1497 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter)); 1496 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter));
1498 return (tracing_on && 1497 return (tracing_on &&
1499 base::OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL); 1498 base::OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL);
1500 } 1499 }
1501 1500
1502 } } // namespace v8::internal 1501 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698