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

Side by Side Diff: src/objects.cc

Issue 69029: If an external string enters the symbol table, make sure to set the... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 8 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/mark-compact.cc ('k') | src/objects-inl.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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 3575 matching lines...) Expand 10 before | Expand all | Expand 10 after
3586 void ExternalTwoByteString::ExternalTwoByteStringReadBlockIntoBuffer( 3586 void ExternalTwoByteString::ExternalTwoByteStringReadBlockIntoBuffer(
3587 ReadBlockBuffer* rbb, 3587 ReadBlockBuffer* rbb,
3588 unsigned* offset_ptr, 3588 unsigned* offset_ptr,
3589 unsigned max_chars) { 3589 unsigned max_chars) {
3590 unsigned chars_read = 0; 3590 unsigned chars_read = 0;
3591 unsigned offset = *offset_ptr; 3591 unsigned offset = *offset_ptr;
3592 const uint16_t* data = resource()->data(); 3592 const uint16_t* data = resource()->data();
3593 while (chars_read < max_chars) { 3593 while (chars_read < max_chars) {
3594 uint16_t c = data[offset]; 3594 uint16_t c = data[offset];
3595 if (c <= kMaxAsciiCharCode) { 3595 if (c <= kMaxAsciiCharCode) {
3596 // Fast case for ASCII characters. Cursor is an input output argument. 3596 // Fast case for ASCII characters. Cursor is an input output argument.
3597 if (!unibrow::CharacterStream::EncodeAsciiCharacter(c, 3597 if (!unibrow::CharacterStream::EncodeAsciiCharacter(c,
3598 rbb->util_buffer, 3598 rbb->util_buffer,
3599 rbb->capacity, 3599 rbb->capacity,
3600 rbb->cursor)) 3600 rbb->cursor))
3601 break; 3601 break;
3602 } else { 3602 } else {
3603 if (!unibrow::CharacterStream::EncodeNonAsciiCharacter(c, 3603 if (!unibrow::CharacterStream::EncodeNonAsciiCharacter(c,
3604 rbb->util_buffer, 3604 rbb->util_buffer,
3605 rbb->capacity, 3605 rbb->capacity,
3606 rbb->cursor)) 3606 rbb->cursor))
(...skipping 3794 matching lines...) Expand 10 before | Expand all | Expand 10 after
7401 // No break point. 7401 // No break point.
7402 if (break_point_objects()->IsUndefined()) return 0; 7402 if (break_point_objects()->IsUndefined()) return 0;
7403 // Single beak point. 7403 // Single beak point.
7404 if (!break_point_objects()->IsFixedArray()) return 1; 7404 if (!break_point_objects()->IsFixedArray()) return 1;
7405 // Multiple break points. 7405 // Multiple break points.
7406 return FixedArray::cast(break_point_objects())->length(); 7406 return FixedArray::cast(break_point_objects())->length();
7407 } 7407 }
7408 7408
7409 7409
7410 } } // namespace v8::internal 7410 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mark-compact.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698