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

Side by Side Diff: src/ast.cc

Issue 6614010: [Isolates] Merge 6700:7030 from bleeding_edge to isolates. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 years, 9 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/assembler.cc ('k') | src/bignum.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 } 612 }
613 } 613 }
614 614
615 615
616 bool Call::ComputeGlobalTarget(Handle<GlobalObject> global, 616 bool Call::ComputeGlobalTarget(Handle<GlobalObject> global,
617 Handle<String> name) { 617 Handle<String> name) {
618 target_ = Handle<JSFunction>::null(); 618 target_ = Handle<JSFunction>::null();
619 cell_ = Handle<JSGlobalPropertyCell>::null(); 619 cell_ = Handle<JSGlobalPropertyCell>::null();
620 LookupResult lookup; 620 LookupResult lookup;
621 global->Lookup(*name, &lookup); 621 global->Lookup(*name, &lookup);
622 if (lookup.IsProperty() && lookup.type() == NORMAL) { 622 if (lookup.IsProperty() &&
623 lookup.type() == NORMAL &&
624 lookup.holder() == *global) {
623 cell_ = Handle<JSGlobalPropertyCell>(global->GetPropertyCell(&lookup)); 625 cell_ = Handle<JSGlobalPropertyCell>(global->GetPropertyCell(&lookup));
624 if (cell_->value()->IsJSFunction()) { 626 if (cell_->value()->IsJSFunction()) {
625 Handle<JSFunction> candidate(JSFunction::cast(cell_->value())); 627 Handle<JSFunction> candidate(JSFunction::cast(cell_->value()));
626 // If the function is in new space we assume it's more likely to 628 // If the function is in new space we assume it's more likely to
627 // change and thus prefer the general IC code. 629 // change and thus prefer the general IC code.
628 if (!HEAP->InNewSpace(*candidate) && 630 if (!HEAP->InNewSpace(*candidate) &&
629 CanCallWithoutIC(candidate, arguments()->length())) { 631 CanCallWithoutIC(candidate, arguments()->length())) {
630 target_ = candidate; 632 target_ = candidate;
631 return true; 633 return true;
632 } 634 }
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
1057 1059
1058 CaseClause::CaseClause(Expression* label, 1060 CaseClause::CaseClause(Expression* label,
1059 ZoneList<Statement*>* statements, 1061 ZoneList<Statement*>* statements,
1060 int pos) 1062 int pos)
1061 : label_(label), 1063 : label_(label),
1062 statements_(statements), 1064 statements_(statements),
1063 position_(pos), 1065 position_(pos),
1064 compare_type_(NONE) {} 1066 compare_type_(NONE) {}
1065 1067
1066 } } // namespace v8::internal 1068 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler.cc ('k') | src/bignum.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698