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

Side by Side Diff: src/ast.cc

Issue 39183004: Define DEBUG for v8_optimized_debug=2 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 7 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 | Annotate | Revision Log
« no previous file with comments | « build/toolchain.gypi ('k') | src/checks.h » ('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 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 Handle<String> name = Handle<String>::cast(key->value()); 620 Handle<String> name = Handle<String>::cast(key->value());
621 check_type_ = oracle->GetCallCheckType(this); 621 check_type_ = oracle->GetCallCheckType(this);
622 receiver_types_.Clear(); 622 receiver_types_.Clear();
623 if (check_type_ == RECEIVER_MAP_CHECK) { 623 if (check_type_ == RECEIVER_MAP_CHECK) {
624 oracle->CallReceiverTypes(this, name, call_kind, &receiver_types_); 624 oracle->CallReceiverTypes(this, name, call_kind, &receiver_types_);
625 is_monomorphic_ = is_monomorphic_ && receiver_types_.length() > 0; 625 is_monomorphic_ = is_monomorphic_ && receiver_types_.length() > 0;
626 } else { 626 } else {
627 holder_ = GetPrototypeForPrimitiveCheck(check_type_, oracle->isolate()); 627 holder_ = GetPrototypeForPrimitiveCheck(check_type_, oracle->isolate());
628 receiver_types_.Add(handle(holder_->map()), oracle->zone()); 628 receiver_types_.Add(handle(holder_->map()), oracle->zone());
629 } 629 }
630 #ifdef DEBUG 630 #ifdef ENABLE_SLOW_ASSERTS
631 if (FLAG_enable_slow_asserts) { 631 if (FLAG_enable_slow_asserts) {
632 int length = receiver_types_.length(); 632 int length = receiver_types_.length();
633 for (int i = 0; i < length; i++) { 633 for (int i = 0; i < length; i++) {
634 Handle<Map> map = receiver_types_.at(i); 634 Handle<Map> map = receiver_types_.at(i);
635 ASSERT(!map.is_null() && *map != NULL); 635 ASSERT(!map.is_null() && *map != NULL);
636 } 636 }
637 } 637 }
638 #endif 638 #endif
639 if (is_monomorphic_) { 639 if (is_monomorphic_) {
640 Handle<Map> map = receiver_types_.first(); 640 Handle<Map> map = receiver_types_.first();
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
1163 OS::SNPrintF(buffer, "%d", Smi::cast(*value_)->value()); 1163 OS::SNPrintF(buffer, "%d", Smi::cast(*value_)->value());
1164 str = arr; 1164 str = arr;
1165 } else { 1165 } else {
1166 str = DoubleToCString(value_->Number(), buffer); 1166 str = DoubleToCString(value_->Number(), buffer);
1167 } 1167 }
1168 return isolate_->factory()->NewStringFromAscii(CStrVector(str)); 1168 return isolate_->factory()->NewStringFromAscii(CStrVector(str));
1169 } 1169 }
1170 1170
1171 1171
1172 } } // namespace v8::internal 1172 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « build/toolchain.gypi ('k') | src/checks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698