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

Side by Side Diff: src/ast.cc

Issue 9584011: Fixed presubmit error. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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 | « 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 // 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 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 // targets for polymorphic calls. 517 // targets for polymorphic calls.
518 holder_ = Handle<JSObject>::null(); 518 holder_ = Handle<JSObject>::null();
519 } 519 }
520 LookupResult lookup(type->GetIsolate()); 520 LookupResult lookup(type->GetIsolate());
521 while (true) { 521 while (true) {
522 type->LookupInDescriptors(NULL, *name, &lookup); 522 type->LookupInDescriptors(NULL, *name, &lookup);
523 if (lookup.IsFound()) { 523 if (lookup.IsFound()) {
524 switch (lookup.type()) { 524 switch (lookup.type()) {
525 case CONSTANT_FUNCTION: 525 case CONSTANT_FUNCTION:
526 // We surely know the target for a constant function. 526 // We surely know the target for a constant function.
527 target_ = Handle<JSFunction>(lookup.GetConstantFunctionFromMap(*type)) ; 527 target_ =
528 Handle<JSFunction>(lookup.GetConstantFunctionFromMap(*type));
528 return true; 529 return true;
529 case NORMAL: 530 case NORMAL:
530 case FIELD: 531 case FIELD:
531 case CALLBACKS: 532 case CALLBACKS:
532 case HANDLER: 533 case HANDLER:
533 case INTERCEPTOR: 534 case INTERCEPTOR:
534 // We don't know the target. 535 // We don't know the target.
535 return false; 536 return false;
536 case MAP_TRANSITION: 537 case MAP_TRANSITION:
537 case ELEMENTS_TRANSITION: 538 case ELEMENTS_TRANSITION:
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
1158 (node->name()->IsEqualTo(CStrVector("_ArgumentsLength")) || 1159 (node->name()->IsEqualTo(CStrVector("_ArgumentsLength")) ||
1159 node->name()->IsEqualTo(CStrVector("_Arguments")))) { 1160 node->name()->IsEqualTo(CStrVector("_Arguments")))) {
1160 // Don't inline the %_ArgumentsLength or %_Arguments because their 1161 // Don't inline the %_ArgumentsLength or %_Arguments because their
1161 // implementation will not work. There is no stack frame to get them 1162 // implementation will not work. There is no stack frame to get them
1162 // from. 1163 // from.
1163 add_flag(kDontInline); 1164 add_flag(kDontInline);
1164 } 1165 }
1165 } 1166 }
1166 1167
1167 } } // namespace v8::internal 1168 } } // 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